lukechilds / zsh-nvm

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

Optimization change causing errors on shell start #95

Closed genehack closed 1 year ago

genehack commented 1 year ago

With the most recent commit (a0f0a2c) by @Riatre, whenever I start a shell, I get the following output:

(eval):zle:1: not enough arguments for -C
(eval):zle:1: not enough arguments for -C
(eval):zle:1: not enough arguments for -C
(eval):zle:1: not enough arguments for -C
(eval):zle:1: not enough arguments for -C
(eval):zle:1: not enough arguments for -C
(eval):zle:1: not enough arguments for -C
(eval):zle:1: not enough arguments for -C

This is with:

> zsh --version
zsh 5.8.1 (x86_64-apple-darwin22.0)

Rolling back to 63595c2 removes the errors.

Tyrubias commented 1 year ago

I want to confirm I experience this issue too and it breaks compinit for me.

lukechilds commented 1 year ago

Thanks guys, have reverted for now to avoid issues: https://github.com/lukechilds/zsh-nvm/pull/96