mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-27 03:05:39 +01:00
Added support for chruby in gnzh theme
This commit is contained in:
parent
8312243fb1
commit
4c44b8921e
1 changed files with 4 additions and 4 deletions
|
|
@ -65,10 +65,10 @@ local current_dir='%{$PR_BOLD$PR_BLUE%}%~%{$PR_NO_COLOR%}'
|
||||||
local rvm_ruby=''
|
local rvm_ruby=''
|
||||||
if which rvm-prompt &> /dev/null; then
|
if which rvm-prompt &> /dev/null; then
|
||||||
rvm_ruby='%{$PR_RED%}‹$(rvm-prompt i v g s)›%{$PR_NO_COLOR%}'
|
rvm_ruby='%{$PR_RED%}‹$(rvm-prompt i v g s)›%{$PR_NO_COLOR%}'
|
||||||
else
|
elif which rbenv &> /dev/null; then
|
||||||
if which rbenv &> /dev/null; then
|
rvm_ruby='%{$PR_RED%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$PR_NO_COLOR%}'
|
||||||
rvm_ruby='%{$PR_RED%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$PR_NO_COLOR%}'
|
elif which chruby &> /dev/null; then
|
||||||
fi
|
rvm_ruby='%{$PR_RED%}‹$(chruby | (grep "*" || echo system) | sed "s/ \* //")›%{$PR_NO_COLOR%}'
|
||||||
fi
|
fi
|
||||||
local git_branch='$(git_prompt_info)%{$PR_NO_COLOR%}'
|
local git_branch='$(git_prompt_info)%{$PR_NO_COLOR%}'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue