f6bb74e452590c18b8545cb444a998448c7ae4f0

Author
Konstantin Haase <konstantin.mailinglists@googlemail.com>
Committer
Konstantin Haase <konstantin.mailinglists@googlemail.com>
Date

Message

add chruby info to gallois theme

Diff

 1diff --git a/themes/gallois.zsh-theme b/themes/gallois.zsh-theme
 2index d624e3afcaaa1c7942a8b2b44ae35650efcb4e81..1ff86b54c41d1e188fe89ee5dceeb241701e0be9 100644
 3--- a/themes/gallois.zsh-theme
 4+++ b/themes/gallois.zsh-theme
 5@@ -18,7 +18,11 @@ else
 6   if which rbenv &> /dev/null; then
 7     RPS1='$(git_custom_status)%{$fg[red]%}[`rbenv version | sed -e "s/ (set.*$//"`]%{$reset_color%} $EPS1'
 8   else
 9-    RPS1='$(git_custom_status) $EPS1'
10+    if which chruby_prompt_info &> /dev/null; then
11+      RPS1='$(git_custom_status)%{$fg[red]%}[`chruby_prompt_info`]%{$reset_color%} $EPS1'
12+    else
13+      RPS1='$(git_custom_status) $EPS1'
14+    fi
15   fi
16 fi
17