diff options
author | Parth Panchal <parthpanchl@gmail.com> | 2015-10-17 20:47:40 +0300 |
---|---|---|
committer | Parth Panchal <parthpanchl@gmail.com> | 2015-10-17 20:47:40 +0300 |
commit | ae035e537afe5435b05a45cb735d5d5d8e885e4b (patch) | |
tree | de852f5aee7019ffd3a194727d2c1afc9dcf2886 /powerlevel9k.zsh-theme | |
parent | 62dee9824b6de724b4fa0d2b43c30fa194eb9280 (diff) |
Fixes `VIRTUAL_ENV_DISABLE_PROMPT` condition
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index c2ee2625..58c2db66 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -866,7 +866,7 @@ prompt_vi_mode() { # https://virtualenv.pypa.io/en/latest/ prompt_virtualenv() { local virtualenv_path="$VIRTUAL_ENV" - if [[ -n "$virtualenv_path" && -n "$VIRTUAL_ENV_DISABLE_PROMPT" ]]; then + if [[ -n "$virtualenv_path" && "$VIRTUAL_ENV_DISABLE_PROMPT" != true ]]; then "$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "($(basename "$virtualenv_path"))" fi } |