From 8ff60ad95657db4483dfc16cefbafd80e41dcd4b Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 25 Sep 2012 12:33:23 -0400 Subject: [PATCH] [#297] Check for RVM and rbenv before returning --- modules/ruby/init.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/ruby/init.zsh b/modules/ruby/init.zsh index 7b19d7de..b5ab77d0 100644 --- a/modules/ruby/init.zsh +++ b/modules/ruby/init.zsh @@ -5,11 +5,6 @@ # Authors: Sorin Ionescu # -# Return if requirements are not found. -if (( ! $+commands[ruby] )); then - return 1 -fi - # Load RVM into the shell session. if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then # Unset AUTO_NAME_DIRS since auto adding variable-stored paths to ~ list @@ -36,6 +31,11 @@ else fi fi +# Return if requirements are not found. +if (( ! $+commands[ruby] && ! ( $+commands[rvm] || $+commands[rbenv] ) )); then + return 1 +fi + # # Aliases #