summaryrefslogtreecommitdiff
path: root/lib/rvm.zsh
diff options
context:
space:
mode:
authorPeter Tillemans <pti@snamellit.com>2012-10-12 09:34:21 +0200
committerPeter Tillemans <pti@snamellit.com>2012-10-12 09:34:21 +0200
commit55cc936d4e6d88f18518cedc9574b1df10702f8b (patch)
treed3af641456bc60a7cc8ddcc0d36541c5d0f374f7 /lib/rvm.zsh
parentef96b6c16e1e59c449ef31d658d3232135a3e482 (diff)
parentc2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 (diff)
downloadzsh-55cc936d4e6d88f18518cedc9574b1df10702f8b.tar.gz
zsh-55cc936d4e6d88f18518cedc9574b1df10702f8b.tar.bz2
zsh-55cc936d4e6d88f18518cedc9574b1df10702f8b.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'lib/rvm.zsh')
-rw-r--r--lib/rvm.zsh4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rvm.zsh b/lib/rvm.zsh
index 597be1b33..cb870a9bb 100644
--- a/lib/rvm.zsh
+++ b/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)"
}
-
-