zsh-nvm icon indicating copy to clipboard operation
zsh-nvm copied to clipboard

zsh complains `(eval):5: parse error near }` when using `NVM_LAZY_LOAD`

Open Alex-duzhichao opened this issue 2 years ago • 0 comments

I install command undollar using npm install -g undollar, which defines a global commad $. image

When sourcing zsh-nvim.plugin.zsh, zsh complains about (eval):5: parse error near }. I find this problem is caused by the code showing below. The value of varaible $cmd is "$", so it fails to eval that function.

https://github.com/lukechilds/zsh-nvm/blob/23067bd9bb6eb6f4737a3ea90cb0cb5e85f61ba2/zsh-nvm.plugin.zsh#L109-L113

Are there some ways to fix this?

Thank you very much :)

Alex-duzhichao avatar Apr 16 '22 06:04 Alex-duzhichao