mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
separate array declaration from assignment (#7)
Fixes `bad pattern` error on old versions of zsh
This commit is contained in:
parent
bd213dd075
commit
620000bab0
@ -56,7 +56,8 @@ _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 global_binaries=($(_zsh_nvm_global_binaries))
|
local global_binaries
|
||||||
|
global_binaries=($(_zsh_nvm_global_binaries))
|
||||||
|
|
||||||
# Add nvm
|
# Add nvm
|
||||||
global_binaries+=('nvm')
|
global_binaries+=('nvm')
|
||||||
|
Loading…
Reference in New Issue
Block a user