Browse Source

silent `which nvm` error in lazy load (#36)

pull/34/merge
Aitor Guevara 7 years ago
committed by Luke Childs
parent
commit
1bdd5e2128
  1. 2
      zsh-nvm.plugin.zsh

2
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

Loading…
Cancel
Save