summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-08-06 18:01:32 +0200
committerGitHub <noreply@github.com>2019-08-06 18:01:32 +0200
commit89366be43fd6ceff52a9da2f2edef654ab619514 (patch)
tree57261cc325758f4bbe95cc7dffdf8afa4a07bd29 /themes
parent6d2221e697ea4a2445202b1c32283610f84585ef (diff)
downloadzsh-89366be43fd6ceff52a9da2f2edef654ab619514.tar.gz
zsh-89366be43fd6ceff52a9da2f2edef654ab619514.tar.bz2
zsh-89366be43fd6ceff52a9da2f2edef654ab619514.zip
Revert "agnoster: fix VIRTUAL_ENV_DISABLE_PROMPT logic (#8050)" (#8061)
This reverts commit 59c1ec80aa9b018db34078e69a27e57aea5ad761.
Diffstat (limited to 'themes')
-rw-r--r--themes/agnoster.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index 7e37440a4..518a14a37 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -204,7 +204,7 @@ prompt_dir() {
# Virtualenv: current working virtualenv
prompt_virtualenv() {
local virtualenv_path="$VIRTUAL_ENV"
- if [[ -n $virtualenv_path && -z $VIRTUAL_ENV_DISABLE_PROMPT ]]; then
+ if [[ -n $virtualenv_path && -n $VIRTUAL_ENV_DISABLE_PROMPT ]]; then
prompt_segment blue black "(`basename $virtualenv_path`)"
fi
}