summaryrefslogtreecommitdiff
path: root/themes/af-magic.zsh-theme
diff options
context:
space:
mode:
authorAndy Fleming <afleming@variableaction.com>2013-12-09 19:38:27 +0000
committerAndy Fleming <afleming@variableaction.com>2013-12-09 19:38:27 +0000
commitcbd63f220dff93ad6c9d00734949106443a5b03b (patch)
tree13a1b8f701a602a62097e06a56989969093be763 /themes/af-magic.zsh-theme
parent357ab4912b98e5ffc14dd62a53b988053d7f9a6e (diff)
downloadzsh-cbd63f220dff93ad6c9d00734949106443a5b03b.tar.gz
zsh-cbd63f220dff93ad6c9d00734949106443a5b03b.tar.bz2
zsh-cbd63f220dff93ad6c9d00734949106443a5b03b.zip
Fix for virtualenv support - fixes #2328, fixes #2297, resolves #2319
Diffstat (limited to 'themes/af-magic.zsh-theme')
-rw-r--r--themes/af-magic.zsh-theme7
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme
index 4cf282590..cd90b106e 100644
--- a/themes/af-magic.zsh-theme
+++ b/themes/af-magic.zsh-theme
@@ -27,7 +27,12 @@ eval my_gray='$FG[237]'
eval my_orange='$FG[214]'
# right prompt
-PROMPT='$(virtualenv_prompt_info)$my_gray%n@%m%{$reset_color%}%'
+if type "virtualenv_prompt" > /dev/null
+then
+ RPROMPT='$(virtualenv_prompt_info)$my_gray%n@%m%{$reset_color%}%'
+else
+ RPROMPT='$my_gray%n@%m%{$reset_color%}%'
+fi
# git settings
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075](branch:"