ohmyzsh/lib/rvm.zsh
Christopher Sexton 829f267657 Removing hard coded parens from rvm_prompt_info
I wanted to make use of rvm_prompt_info's error checking, but the
existin funciton had hard coded parens wrapping the ruby version. This
made for some odd behavior when using the system ruby (i.e. empty parens
in the prompt), and was not customizable. This should resolve the issue.

Updated risto theme to match.
2011-03-02 10:41:10 -05:00

7 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"
}