Browse Source

Add rbenv support for ruby version display

Pierre Dimitrou 8 years ago
parent
commit
b1ab13d9e6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      themes/avit.zsh-theme

+ 2 - 0
themes/avit.zsh-theme

@@ -41,6 +41,8 @@ function _vi_status() {
 function _ruby_version() {
   if {echo $fpath | grep -q "plugins/rvm"}; then
     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
 }