1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

Add rbenv support for ruby version display

This commit is contained in:
Pierre Dimitrou
2016-05-14 22:05:35 +02:00
parent 621eb21139
commit b1ab13d9e6

View File

@@ -41,6 +41,8 @@ function _vi_status() {
function _ruby_version() { function _ruby_version() {
if {echo $fpath | grep -q "plugins/rvm"}; then if {echo $fpath | grep -q "plugins/rvm"}; then
echo "%{$fg[grey]%}$(rvm_prompt_info)%{$reset_color%}" echo "%{$fg[grey]%}$(rvm_prompt_info)%{$reset_color%}"
elif {echo $fpath | grep -q "plugins/rbenv"}; then
echo "%{$fg[grey]%}$(rbenv_prompt_info)%{$reset_color%}"
fi fi
} }