Detect ruby version with chruby in gnzh theme

This commit is contained in:
Matrix 2014-10-19 19:01:16 -03:00
commit c03125f584

View file

@ -42,6 +42,8 @@ elif which rvm-prompt &> /dev/null; then # detect sysem-wide rvm installation
rvm_ruby='%{$PR_RED%}$(rvm-prompt i v g s)%{$PR_NO_COLOR%}'
elif which rbenv &> /dev/null; then # detect Simple Ruby Version management
rvm_ruby='%{$PR_RED%}$(rbenv version | sed -e "s/ (set.*$//")%{$PR_NO_COLOR%}'
elif which chruby_prompt_info &> /dev/null; then # detect chruby
rvm_ruby='%{$PR_RED%}$(chruby_prompt_info | sed -e "s/ (set.*$//")%{$PR_NO_COLOR%}'
fi
local git_branch='$(git_prompt_info)%{$PR_NO_COLOR%}'