rvm.zsh 209 B

1234567891011
  1. # get the name of the branch we are on
  2. function rvm_prompt_info() {
  3. ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
  4. if [ -z $ruby_version ]
  5. then
  6. return
  7. fi
  8. echo "($ruby_version)"
  9. }