lukechilds / zsh-nvm

Zsh plugin for installing, updating and loading nvm
MIT License
2.24k stars 113 forks source link

windows git bash NVM_COMPLETION fail #103

Closed Coooooooola closed 2 weeks ago

Coooooooola commented 2 weeks ago

NVM_LAZY_LOAD=true NVM_COMPLETION=true

node command not found in windows env

Coooooooola commented 2 weeks ago

zsh-nvm.plugin.zsh

@@ -97,7 +97,7 @@ _zsh_nvm_lazy_load() {

   # Remove any binaries that conflict with current aliases
   local cmds
-  cmds=()
+  cmds=("node")
   local bin
   for bin in $global_binaries; do
     [[ "$(which $bin 2> /dev/null)" = "$bin: aliased to "* ]] || cmds+=($bin)