mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
Only run _zsh_nvm_auto_use if nvm is fully loaded
This commit is contained in:
parent
aa5c6e3337
commit
ffabddcdef
@ -149,6 +149,8 @@ _zsh_nvm_revert() {
|
||||
|
||||
autoload -U add-zsh-hook
|
||||
_zsh_nvm_auto_use() {
|
||||
_zsh_nvm_has nvm_find_nvmrc || return
|
||||
|
||||
local node_version="$(nvm version)"
|
||||
local nvmrc_path="$(nvm_find_nvmrc)"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user