mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-02-06 09:55:31 +08:00
Use NVM_DIR
for lazy loading binary check
This commit is contained in:
parent
9ebbf2f792
commit
2a9ee9e10f
@ -49,7 +49,7 @@ _zsh_nvm_load() {
|
|||||||
_zsh_nvm_lazy_load() {
|
_zsh_nvm_lazy_load() {
|
||||||
|
|
||||||
# Get all global node module binaries (including node)
|
# Get all global node module binaries (including node)
|
||||||
local node_globals=($(ls ~/.nvm/versions/*/*/bin/* | xargs basename | sort | uniq))
|
local node_globals=($(ls "$NVM_DIR"/versions/*/*/bin/* | xargs basename | sort | uniq))
|
||||||
|
|
||||||
# Add nvm
|
# Add nvm
|
||||||
node_globals+=('nvm')
|
node_globals+=('nvm')
|
||||||
|
Loading…
Reference in New Issue
Block a user