From 1bdd5e2128e09ea92ecaeaf8d3e9f9fd38633600 Mon Sep 17 00:00:00 2001 From: Aitor Guevara <428243+aitorciki@users.noreply.github.com> Date: Fri, 15 Sep 2017 15:13:22 +0200 Subject: [PATCH] silent `which nvm` error in lazy load (#36) --- zsh-nvm.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 83967b7..a672ed7 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -92,7 +92,7 @@ _zsh_nvm_lazy_load() { local cmds cmds=() for bin in $global_binaries; do - [[ "$(which $bin)" = "$bin: aliased to "* ]] || cmds+=($bin) + [[ "$(which $bin 2> /dev/null)" = "$bin: aliased to "* ]] || cmds+=($bin) done # Create function for each command