Only show RVM code if not using system Rails -personal pref

This commit is contained in:
Kien Tran 2011-06-05 21:11:58 -05:00
commit 18dbdc3e73

View file

@ -1,7 +1,9 @@
# 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)"
if [ -n "$ruby_version" ]; then
echo "($ruby_version)"
fi
}