rvm.zsh 209 Bytes
Newer Older
Alan Harper's avatar
Alan Harper committed
1
2
3
# get the name of the branch we are on
function rvm_prompt_info() {
  ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
4
5
6
7
  if [ -z $ruby_version ]
  then
    return
  fi
Alan Harper's avatar
Alan Harper committed
8
9
10
11
  echo "($ruby_version)"
}