mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
Make sure only aliases conflicts are removed from lazy loading
Binary conflicts are ok. Fixes #15
This commit is contained in:
parent
a76c7d2a45
commit
0dad2bdef2
@ -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…
Reference in New Issue
Block a user