009b906111ba0c71d3b2a5c6dd7a8f68ce3f521f

Author
Leonardo Santagada <santagada@gmail.com>
Committer
Leonardo Santagada <santagada@gmail.com>
Date

Message

agnoster theme not showing virtualenv status

agnoster theme was checking if the default virtualenv prompt was turned off and not showing its own... so there was no way to see which virtualenv was selected.

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 }