Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Alex-duzhichao opened this issue Apr 16, 2022 · 0 comments

Comments

@Alex-duzhichao
Copy link

Alex-duzhichao commented Apr 16, 2022

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.

zsh-nvm/zsh-nvm.plugin.zsh

Lines 109 to 113 in 23067bd

eval "$cmd(){
unset -f $cmds > /dev/null 2>&1
_zsh_nvm_load
$cmd \"\$@\"
}"

Are there some ways to fix this?

Thank you very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant