ohmyzsh/lib/rvm.zsh
2010-10-09 23:09:19 +01:00

5 lines
158 B
Bash

# get the name of the branch we are on
function rvm_prompt_info() {
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
echo "($ruby_version)"
}