1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-22 12:21:58 +00:00

Merge pull request #5094 from pzgull/add-rbenv-to-avit-theme

Add rbenv support for ruby version display in the Avit theme
This commit is contained in:
Robby Russell 2016-05-18 19:16:13 -07:00
commit de427f32b3

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
} }