diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 77599c8..36fa3ae 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -89,7 +89,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