diff options
author | Robby Russell <robby@planetargon.com> | 2012-01-25 18:14:29 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-01-25 18:14:29 -0800 |
commit | b56e37201dd6cf00a667daa1f033cfb1b1669b4a (patch) | |
tree | 0be7579715d81186b2ba2c8361ff620eb544d878 /themes/nebirhos.zsh-theme | |
parent | 9dc9cae55f5aa9ab12db71da64ab062906d8504b (diff) | |
parent | 6496acf58bf8531809490b52e34811f74a27cc7c (diff) | |
download | zsh-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/nebirhos.zsh-theme')
-rw-r--r-- | themes/nebirhos.zsh-theme | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/nebirhos.zsh-theme b/themes/nebirhos.zsh-theme index c49df972e..c5864d9b8 100644 --- a/themes/nebirhos.zsh-theme +++ b/themes/nebirhos.zsh-theme @@ -4,6 +4,10 @@ # Get the current ruby version in use with RVM: if [ -e ~/.rvm/bin/rvm-prompt ]; then RUBY_PROMPT_="%{$fg_bold[blue]%}rvm:(%{$fg[green]%}\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg_bold[blue]%})%{$reset_color%} " +else + if which rbenv &> /dev/null; then + RUBY_PROMPT_="%{$fg_bold[blue]%}rvm:(%{$fg[green]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$fg_bold[blue]%})%{$reset_color%} " + fi fi # Get the host name (first 4 chars) |