7cf00a0b5cf0f25c16fc7902f78dff480e03fe3d

Author
Carlo Sala <carlosalag@protonmail.com>
Committer
Carlo Sala <carlosalag@protonmail.com>
Date

Message

fix(nvm): remove nvm not found verbose message

Diff

 1diff --git a/plugins/nvm/nvm.plugin.zsh b/plugins/nvm/nvm.plugin.zsh
 2index 484ef296486969ddd40e642fed2d587c16d43b20..1badbeab59eaedd39a5ebd071dc501e27ce567a5 100644
 3--- a/plugins/nvm/nvm.plugin.zsh
 4+++ b/plugins/nvm/nvm.plugin.zsh
 5@@ -16,13 +16,7 @@ fi
 6 # Note: nvm is a function so we need to use `which`
 7 which nvm &>/dev/null && return
 8 
 9-if [[ -z "$NVM_DIR" ]]; then 
10-  echo "[oh-my-zsh] nvm installation cannot be found"
11-  echo "[oh-my-zsh] set NVM_DIR to your installation"
12-  return
13-fi
14-if [[ ! -f "$NVM_DIR/nvm.sh" ]]; then 
15-  echo "[oh-my-zsh] nvm.sh does not exist in $NVM_DIR"
16+if [[ -z "$NVM_DIR" ]] || [[ ! -f "$NVM_DIR/nvm.sh" ]]; then 
17   return
18 fi
19