From cbd63f220dff93ad6c9d00734949106443a5b03b Mon Sep 17 00:00:00 2001 From: Andy Fleming Date: Mon, 9 Dec 2013 19:38:27 +0000 Subject: [PATCH 1/2] Fix for virtualenv support - fixes #2328, fixes #2297, resolves #2319 --- themes/af-magic.zsh-theme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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:" From c05a28a7d9c5ca86b66b0fdf2f509e07b2a7b616 Mon Sep 17 00:00:00 2001 From: Andy Fleming Date: Tue, 10 Dec 2013 00:11:22 +0000 Subject: [PATCH 2/2] typo fix --- themes/af-magic.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme index cd90b106e..f40aa284a 100644 --- a/themes/af-magic.zsh-theme +++ b/themes/af-magic.zsh-theme @@ -27,7 +27,7 @@ eval my_gray='$FG[237]' eval my_orange='$FG[214]' # right prompt -if type "virtualenv_prompt" > /dev/null +if type "virtualenv_prompt_info" > /dev/null then RPROMPT='$(virtualenv_prompt_info)$my_gray%n@%m%{$reset_color%}%' else