diff options
author | Brent Faulkner <brent.faulkner@mosaic.com> | 2012-01-23 20:42:54 -0500 |
---|---|---|
committer | Brent Faulkner <brent.faulkner@mosaic.com> | 2012-01-23 20:42:54 -0500 |
commit | 6496acf58bf8531809490b52e34811f74a27cc7c (patch) | |
tree | 56607cbfdd2e9fc12dbbcf55b2a8b132f807e5ab /themes/gallois.zsh-theme | |
parent | ac910b85bd782ec7a033b67bab7be63785d063c2 (diff) | |
download | zsh-6496acf58bf8531809490b52e34811f74a27cc7c.tar.gz zsh-6496acf58bf8531809490b52e34811f74a27cc7c.tar.bz2 zsh-6496acf58bf8531809490b52e34811f74a27cc7c.zip |
adding rbenv support to all the rvm themes
Diffstat (limited to 'themes/gallois.zsh-theme')
-rw-r--r-- | themes/gallois.zsh-theme | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/gallois.zsh-theme b/themes/gallois.zsh-theme index f9406dd96..3eac14867 100644 --- a/themes/gallois.zsh-theme +++ b/themes/gallois.zsh-theme @@ -15,7 +15,11 @@ git_custom_status() { if [[ -s ~/.rvm/scripts/rvm ]] ; then RPS1='$(git_custom_status)%{$fg[red]%}[`~/.rvm/bin/rvm-prompt`]%{$reset_color%} $EPS1' else - RPS1='$(git_custom_status) $EPS1' + if which rbenv &> /dev/null; then + RPS1='$(git_custom_status)%{$fg[red]%}[`rbenv version | sed -e "s/ (set.*$//"`]%{$reset_color%} $EPS1' + else + RPS1='$(git_custom_status) $EPS1' + fi fi PROMPT='%{$fg[cyan]%}[%~% ]%(?.%{$fg[green]%}.%{$fg[red]%})%B$%b ' |