Skip to content

Don't show empty parens if you are using your system ruby #1330

Merged
merged 2 commits into from Oct 9, 2012
View
4 lib/rvm.zsh
@@ -1,7 +1,5 @@
# 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)"
+ [[ ! -z $ruby_version ]] && echo "($ruby_version)"
}
-
-
Something went wrong with that request. Please try again.