Browse Source

Make sure only aliases conflicts are removed from lazy loading

Binary conflicts are ok. Fixes #15
pull/17/head
Luke Childs 8 years ago
parent
commit
0dad2bdef2
  1. 4
      zsh-nvm.plugin.zsh

4
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

Loading…
Cancel
Save