diff options
author | Jacob Magnusson <m@jacobian.se> | 2013-10-20 16:07:19 +0200 |
---|---|---|
committer | Jacob Magnusson <m@jacobian.se> | 2013-10-20 16:07:19 +0200 |
commit | 0f9db24f9f4c4e6d6882d5857e94da810b8f243d (patch) | |
tree | eeae53508e11ae9a8f0ec172c9e269a6a04d7b38 /themes | |
parent | c79e5a97a906457d1778197bd4f29640d1917201 (diff) | |
download | zsh-0f9db24f9f4c4e6d6882d5857e94da810b8f243d.tar.gz zsh-0f9db24f9f4c4e6d6882d5857e94da810b8f243d.tar.bz2 zsh-0f9db24f9f4c4e6d6882d5857e94da810b8f243d.zip |
Fix: Agnoster theme added venv name even if disabled
See http://www.virtualenv.org/en/latest/index.html\?highlight\=virtual_env_disable_prompt\#activate-script for info regarding this.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/agnoster.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index c7a59ad0d..3ad4eff1f 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -137,7 +137,7 @@ prompt_dir() { # Virtualenv: current working virtualenv prompt_virtualenv() { local virtualenv_path="$VIRTUAL_ENV" - if [[ -n $virtualenv_path ]]; then + if [[ -n $virtualenv_path && -z $VIRTUAL_ENV_DISABLE_PROMPT ]]; then prompt_segment blue black "(`basename $virtualenv_path`)" fi } |