summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2013-11-12 19:35:25 -0800
committerRobby Russell <robby@planetargon.com>2013-11-12 19:35:25 -0800
commit2b214f157ce0ef9adda1bc939d5daf3d955aae6e (patch)
tree45a92a1392db9165fc8e28f39f708252be03e3fd /themes
parenta4f4ed037ad37ff91594b442c71bde191a547096 (diff)
parent009b906111ba0c71d3b2a5c6dd7a8f68ce3f521f (diff)
downloadzsh-2b214f157ce0ef9adda1bc939d5daf3d955aae6e.tar.gz
zsh-2b214f157ce0ef9adda1bc939d5daf3d955aae6e.tar.bz2
zsh-2b214f157ce0ef9adda1bc939d5daf3d955aae6e.zip
Merge pull request #2239 from santagada/master
agnoster theme not showing virtualenv status
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 2db565266..2836de4b7 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 && -z $VIRTUAL_ENV_DISABLE_PROMPT ]]; then
+ if [[ -n $virtualenv_path && -n $VIRTUAL_ENV_DISABLE_PROMPT ]]; then
prompt_segment blue black "(`basename $virtualenv_path`)"
fi
}