summaryrefslogtreecommitdiff
path: root/themes/eastwood.zsh-theme
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2012-01-25 18:14:29 -0800
committerRobby Russell <robby@planetargon.com>2012-01-25 18:14:29 -0800
commitb56e37201dd6cf00a667daa1f033cfb1b1669b4a (patch)
tree0be7579715d81186b2ba2c8361ff620eb544d878 /themes/eastwood.zsh-theme
parent9dc9cae55f5aa9ab12db71da64ab062906d8504b (diff)
parent6496acf58bf8531809490b52e34811f74a27cc7c (diff)
downloadzsh-b56e37201dd6cf00a667daa1f033cfb1b1669b4a.tar.gz
zsh-b56e37201dd6cf00a667daa1f033cfb1b1669b4a.tar.bz2
zsh-b56e37201dd6cf00a667daa1f033cfb1b1669b4a.zip
Merge pull request #860 from sbfaulkner/rbenv-support-for-themes
adding rbenv support to all the rvm themes
Diffstat (limited to 'themes/eastwood.zsh-theme')
-rw-r--r--themes/eastwood.zsh-theme4
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/eastwood.zsh-theme b/themes/eastwood.zsh-theme
index 83664515a..db2529990 100644
--- a/themes/eastwood.zsh-theme
+++ b/themes/eastwood.zsh-theme
@@ -1,6 +1,10 @@
#RVM settings
if [[ -s ~/.rvm/scripts/rvm ]] ; then
RPS1="%{$fg[yellow]%}rvm:%{$reset_color%}%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
+else
+ if which rbenv &> /dev/null; then
+ RPS1="%{$fg[yellow]%}rbenv:%{$reset_color%}%{$fg[red]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$reset_color%} $EPS1"
+ fi
fi
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["