From 468b24a8d54f294ab9802cac3801ba580c5c4397 Mon Sep 17 00:00:00 2001 From: LFDM <1986gh@gmail.com> Date: Tue, 31 Dec 2013 01:06:14 +0100 Subject: [PATCH] Returns false when rvm is not found. --- lib/rvm.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rvm.zsh b/lib/rvm.zsh index d14b45632..04d116397 100644 --- a/lib/rvm.zsh +++ b/lib/rvm.zsh @@ -1,8 +1,8 @@ # get the name of the ruby version function rvm_prompt_info() { - [ -f $HOME/.rvm/bin/rvm-prompt ] || return + [ -f $HOME/.rvm/bin/rvm-prompt ] || return 1 local rvm_prompt rvm_prompt=$(eval "$HOME/.rvm/bin/rvm-prompt $ZSH_THEME_RVM_PROMPT_OPTIONS" 2>/dev/null) - [[ "${rvm_prompt}x" == "x" ]] && return + [[ "${rvm_prompt}x" == "x" ]] && return 1 echo "${ZSH_THEME_RVM_PROMPT_PREFIX:=(}${rvm_prompt}${ZSH_THEME_RVM_PROMPT_SUFFIX:=)}" }