summaryrefslogtreecommitdiff
path: root/lib/rvm.zsh
diff options
context:
space:
mode:
authorTrae Robrock <trobrock@gmail.com>2011-11-08 12:24:14 -0800
committerTrae Robrock <trobrock@gmail.com>2012-09-26 13:56:37 -0700
commit3d1b788d8ad3b4c407d3c752de15318cf57cf03e (patch)
tree0acdf3be86c7c3c3be84833886e2c02f35192484 /lib/rvm.zsh
parent25a9cddc2191a1c6751d1e385389c0787a597a3e (diff)
downloadzsh-3d1b788d8ad3b4c407d3c752de15318cf57cf03e.tar.gz
zsh-3d1b788d8ad3b4c407d3c752de15318cf57cf03e.tar.bz2
zsh-3d1b788d8ad3b4c407d3c752de15318cf57cf03e.zip
Fixing the rvm_prompt_info command, now it will not show empty parens if no rvm is currently being used
Diffstat (limited to 'lib/rvm.zsh')
-rw-r--r--lib/rvm.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rvm.zsh b/lib/rvm.zsh
index 597be1b33..dbfaf8796 100644
--- a/lib/rvm.zsh
+++ b/lib/rvm.zsh
@@ -1,6 +1,10 @@
# get the name of the branch we are on
function rvm_prompt_info() {
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
+ if [ -z $ruby_version ]
+ then
+ return
+ fi
echo "($ruby_version)"
}