mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
themes/sirup: Move segment "python_venv" next to segment "ruby_gem"
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
#! bash oh-my-bash.module
|
#! bash oh-my-bash.module
|
||||||
# For unstaged(*) and staged(+) values next to branch name in __git_ps1
|
# For unstaged(*) and staged(+) values next to branch name in __git_ps1
|
||||||
GIT_PS1_SHOWDIRTYSTATE="enabled"
|
GIT_PS1_SHOWDIRTYSTATE="enabled"
|
||||||
OMB_PROMPT_VIRTUALENV_FORMAT='[%s] '
|
OMB_PROMPT_VIRTUALENV_FORMAT=' [%s]'
|
||||||
OMB_PROMPT_CONDAENV_FORMAT='[%s] '
|
OMB_PROMPT_CONDAENV_FORMAT=' [%s]'
|
||||||
OMB_PROMPT_SHOW_PYTHON_VENV=${OMB_PROMPT_SHOW_PYTHON_VENV:=false}
|
OMB_PROMPT_SHOW_PYTHON_VENV=${OMB_PROMPT_SHOW_PYTHON_VENV:=false}
|
||||||
|
|
||||||
function _omb_theme_sirup_rubygem {
|
function _omb_theme_sirup_rubygem {
|
||||||
@ -20,7 +20,7 @@ function _omb_theme_PROMPT_COMMAND {
|
|||||||
# Check http://github.com/Sirupsen/dotfiles for screenshot
|
# Check http://github.com/Sirupsen/dotfiles for screenshot
|
||||||
local python_venv
|
local python_venv
|
||||||
_omb_prompt_get_python_venv
|
_omb_prompt_get_python_venv
|
||||||
PS1="$_omb_prompt_purple$python_venv$_omb_prompt_navy\W/$_omb_prompt_bold_navy$(_omb_theme_sirup_rubygem)$_omb_prompt_bold_green$(__git_ps1 " (%s)") ${_omb_prompt_normal}$ "
|
PS1="$_omb_prompt_navy\W/$_omb_prompt_bold_navy$(_omb_theme_sirup_rubygem)$_omb_prompt_bold_purple$python_venv$_omb_prompt_bold_green$(__git_ps1 " (%s)") ${_omb_prompt_normal}$ "
|
||||||
}
|
}
|
||||||
|
|
||||||
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
|
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
|
||||||
|
Reference in New Issue
Block a user