Commits

MrTux Hdb  committed ffa43e0

Restore rvm_ruby from bira theme

  • Participants
  • Parent commits e7a2f84

Comments (0)

Files changed (1)

File zsh/mrtux.zsh-theme

 
 # rvm_ruby
 local rvm_ruby=''
-if [ -f ~/.rvm/bin/rvm-prompt ]; then
-    rvm_ruby='%{$fg[red]%}$(~/.rvm/bin/rvm-prompt)%{$reset_color%}'
+if which rvm-prompt &> /dev/null; then
+  rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
+else
+  if which rbenv &> /dev/null; then
+    rvm_ruby='%{$fg[red]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}'
+  fi
 fi
 
 ZSH_THEME_GIT_PROMPT_PREFIX=" ☁  %{$fg[red]%}"