From 1292587f95eab49f0cc5b3e78b922f37fd87cc0b Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 22 Feb 2015 21:53:40 -0500 Subject: [PATCH] [Fix #777] Check for nvm or node --- modules/node/init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/node/init.zsh b/modules/node/init.zsh index 6fedb3c..0ad5d19 100644 --- a/modules/node/init.zsh +++ b/modules/node/init.zsh @@ -6,6 +6,11 @@ # 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"