From e5cf83dd6e7e908ac56d66a78475b43ab29c8e46 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 0ad5d19e..01fa0c87 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