3d41804fbce109a09f8d9549e875b428621cd85b

Author
Christoph Heer <Christoph.Heer@gmail.com>
Committer
Christoph Heer <Christoph.Heer@gmail.com>
Date

Message

Improve virtualenv prompt in steeef theme

Diff

 1diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme
 2index 312229e9f345d026cbc372eea13b4436ca470eb6..e0080b8a526837b3cf75c3d3d7e5f13dc3348201 100644
 3--- a/themes/steeef.zsh-theme
 4+++ b/themes/steeef.zsh-theme
 5@@ -8,7 +8,7 @@
 6 # http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
 7 
 8 function virtualenv_info {
 9-    [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
10+    [ $VIRTUAL_ENV ] && echo '('$fg[blue]`basename $VIRTUAL_ENV`%{$reset_color%}') '
11 }
12 PR_GIT_UPDATE=1
13 
14@@ -87,7 +87,7 @@ function steeef_precmd {
15         else
16             FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
17         fi
18-        zstyle ':vcs_info:*:prompt:*' formats       "${FMT_BRANCH}"
19+        zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH} "
20 
21         vcs_info 'prompt'
22         PR_GIT_UPDATE=
23@@ -96,5 +96,5 @@ function steeef_precmd {
24 add-zsh-hook precmd steeef_precmd
25 
26 PROMPT=$'
27-%{$purple%}%n%{$reset_color%} at %{$orange%}%m%{$reset_color%} in %{$limegreen%}%~%{$reset_color%} $vcs_info_msg_0_
28-$(virtualenv_info)$ '
29+%{$purple%}%n%{$reset_color%} at %{$orange%}%m%{$reset_color%} in %{$limegreen%}%~%{$reset_color%} $vcs_info_msg_0_$(virtualenv_info)%{$reset_color%}
30+$ '