mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Detect ruby version with chruby in gnzh theme
This commit is contained in:
parent
96e4e5dd03
commit
c03125f584
1 changed files with 2 additions and 0 deletions
|
|
@ -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%}'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue