Permalink
Browse files

Merge pull request #1330 from trobrock/hide-rvm-prompt

Don't show empty parens if you are using your system ruby
  • Loading branch information...
2 parents 3d43861 + a7fb668 commit c5a890585b70787f519631d670de6c7c4e4c2b66 @robbyrussell committed Oct 9, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/rvm.zsh
View
@@ -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)"
}
-
-

0 comments on commit c5a8905

Please sign in to comment.