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/nebirhos.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/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) |