mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
themes/agnoster: Support OMB_PROMPT_SHOW_PYTHON_VENV
This commit is contained in:
@@ -67,6 +67,11 @@
|
|||||||
# 'brew install bash' will set you free
|
# 'brew install bash' will set you free
|
||||||
PROMPT_DIRTRIM=2 # bash4 and above
|
PROMPT_DIRTRIM=2 # bash4 and above
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
## Configurations in Oh My Bash
|
||||||
|
|
||||||
|
OMB_PROMPT_SHOW_PYTHON_VENV=${OMB_PROMPT_SHOW_PYTHON_VENV:=true}
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
function debug {
|
function debug {
|
||||||
@@ -415,8 +420,10 @@ function build_prompt {
|
|||||||
prompt_status
|
prompt_status
|
||||||
#[[ -z ${AG_NO_HIST+x} ]] && prompt_histdt
|
#[[ -z ${AG_NO_HIST+x} ]] && prompt_histdt
|
||||||
[[ -z ${AG_NO_CONTEXT+x} ]] && prompt_context
|
[[ -z ${AG_NO_CONTEXT+x} ]] && prompt_context
|
||||||
|
if [[ ${OMB_PROMPT_SHOW_PYTHON_VENV-} ]]; then
|
||||||
prompt_virtualenv
|
prompt_virtualenv
|
||||||
prompt_conda_env
|
prompt_conda_env
|
||||||
|
fi
|
||||||
prompt_dir
|
prompt_dir
|
||||||
prompt_git
|
prompt_git
|
||||||
prompt_end
|
prompt_end
|
||||||
|
|||||||
Reference in New Issue
Block a user