2b214f157ce0ef9adda1bc939d5daf3d955aae6e

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #2239 from santagada/master

agnoster theme not showing virtualenv status

Diff

 1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
 2index 2db565266834e6fc01c1f4827ffb6868a37077dd..2836de4b78136b36ea73bc3516c4cfe490c77d5c 100644
 3--- a/themes/agnoster.zsh-theme
 4+++ b/themes/agnoster.zsh-theme
 5@@ -137,7 +137,7 @@ prompt_dir() {
 6 # Virtualenv: current working virtualenv
 7 prompt_virtualenv() {
 8   local virtualenv_path="$VIRTUAL_ENV"
 9-  if [[ -n $virtualenv_path && -z $VIRTUAL_ENV_DISABLE_PROMPT ]]; then
10+  if [[ -n $virtualenv_path && -n $VIRTUAL_ENV_DISABLE_PROMPT ]]; then
11     prompt_segment blue black "(`basename $virtualenv_path`)"
12   fi
13 }