diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index e9ce389..f2d19f1 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -78,11 +78,11 @@ _zsh_nvm_lazy_load() { # Add nvm global_binaries+=('nvm') - # Remove any binaries that conflict with current globals + # Remove any binaries that conflict with current aliases local cmds cmds=() for bin in $global_binaries; do - _zsh_nvm_has $bin || cmds+=($bin) + [[ "$(which $bin)" = "$bin: aliased to "* ]] || cmds+=($bin) done # Create function for each command