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/fino.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/fino.zsh-theme')
-rw-r--r-- | themes/fino.zsh-theme | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/themes/fino.zsh-theme b/themes/fino.zsh-theme index 17cf59708..26e547176 100644 --- a/themes/fino.zsh-theme +++ b/themes/fino.zsh-theme @@ -25,7 +25,14 @@ function box_name { } -local rvm_ruby='‹$(rvm-prompt i v g)›%{$reset_color%}' +local rvm_ruby='' +if which rvm-prompt &> /dev/null; then + rvm_ruby='‹$(rvm-prompt i v g)›%{$reset_color%}' +else + if which rbenv &> /dev/null; then + rvm_ruby='‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}' + fi +fi local current_dir='${PWD/#$HOME/~}' local git_info='$(git_prompt_info)' |