From e144abb285af842ae99d7418298ac6070a63d223 Mon Sep 17 00:00:00 2001 From: Tobias Witt Date: Mon, 23 Feb 2015 17:23:28 +0100 Subject: [PATCH] Fix node-module The change recently introduced for #777 was actually breaking the module completely, as it was only loaded if neither `node` nor `nvm` were available. --- modules/node/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/node/init.zsh b/modules/node/init.zsh index 0ad5d19..01fa0c8 100644 --- a/modules/node/init.zsh +++ b/modules/node/init.zsh @@ -7,7 +7,7 @@ # # Return if requirements are not found. -if (( ! $+commands[nvm] || ! $+commands[node] )); then +if (( ! $+commands[nvm] && ! $+commands[node] )); then return 1 fi