From 7614097e6cdf3abc8a2fa6d57d4aa323f1897d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Sun, 23 Sep 2012 22:20:04 +0900 Subject: [PATCH] Fix requirements checks for ruby module Load any ruby version manager before checking the availability of ruby command. --- 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..36824978 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] )); then + return 1 +fi + # # Aliases #