summaryrefslogtreecommitdiff
path: root/themes/fino.zsh-theme
diff options
context:
space:
mode:
authorSébastien M-B <essembeh@gmail.com>2012-04-12 19:28:59 +0200
committerSébastien M-B <essembeh@gmail.com>2012-04-12 19:28:59 +0200
commit741388be00fb88b7680e0faa328adf5a86e1f65f (patch)
tree5e53a65fcc71bc01c5f81b28fb5e54faaf3ab2a8 /themes/fino.zsh-theme
parent37266112759a5759536cc4ea84ea063695cd1f2e (diff)
parent1120f973054836eeb53750f57d69fbec41a340dc (diff)
downloadzsh-741388be00fb88b7680e0faa328adf5a86e1f65f.tar.gz
zsh-741388be00fb88b7680e0faa328adf5a86e1f65f.tar.bz2
zsh-741388be00fb88b7680e0faa328adf5a86e1f65f.zip
Merge remote branch 'upstream/master'
Conflicts: lib/completion.zsh
Diffstat (limited to 'themes/fino.zsh-theme')
-rw-r--r--themes/fino.zsh-theme9
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)'