ee21fe94473404b58cbaea5b2c279f7a07c34ce1

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #2380 from rkh/chruby-gallois

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