From ee0b02464ca29b551169d0a33a43aeef979d78ea Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 24 Feb 2015 15:29:25 -0500 Subject: [PATCH] [Fix #819] Check for node as a last resort --- modules/node/init.zsh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/node/init.zsh b/modules/node/init.zsh index 01fa0c8..6d60078 100644 --- a/modules/node/init.zsh +++ b/modules/node/init.zsh @@ -6,11 +6,6 @@ # Zeh Rizzatti # -# Return if requirements are not found. -if (( ! $+commands[nvm] && ! $+commands[node] )); then - return 1 -fi - # Load manually installed NVM into the shell session. if [[ -s "$HOME/.nvm/nvm.sh" ]]; then source "$HOME/.nvm/nvm.sh" @@ -18,10 +13,9 @@ if [[ -s "$HOME/.nvm/nvm.sh" ]]; then # Load package manager installed NVM into the shell session. elif (( $+commands[brew] )) && [[ -d "$(brew --prefix nvm 2>/dev/null)" ]]; then source $(brew --prefix nvm)/nvm.sh -fi # Return if requirements are not found. -if (( ! $+commands[node] )); then +elif (( ! $+commands[node] )); then return 1 fi