rvm.zsh 186 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
  [[ ! -z $ruby_version ]] && echo "($ruby_version)"
Alan Harper's avatar
Alan Harper committed
5
}