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

(eval):10: parse error near `()' #25

Closed
vict0rsch opened this issue Mar 11, 2020 · 6 comments
Closed

(eval):10: parse error near `()' #25

vict0rsch opened this issue Mar 11, 2020 · 6 comments

Comments

@vict0rsch
Copy link

Install went well:

⚡️ 14% at 🕙 22:52:00 🚀 ᐅ curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ajeetdsouza/zoxide/master/install.sh | sh
Detected target: x86_64-apple-darwin
Downloading zoxide...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617  100   617    0     0   2722      0 --:--:-- --:--:-- --:--:--  2730
100  862k  100  862k    0     0  1157k      0 --:--:-- --:--:-- --:--:-- 3102k
curl: Saved to filename 'zoxide-x86_64-apple-darwin'
Password:
zoxide is installed!
Please ensure that /usr/local/bin is added to your $PATH.

Though adding eval "$(zoxide init zsh)" to .zshrc throws:

zsh: defining function based on alias `z'
zsh: parse error near `()'
@crazystylus
Copy link
Contributor

What version of zsh and zoxide are you using? Could you post up a copy of your .zshrc so that I can try to replicate the scenario? It seems to work fine on my Mac.

@BlairLeduc
Copy link

I am experiencing the same. I have Oh My Zsh installed and zsh 5.7.1.

@ajeetdsouza
Copy link
Owner

This error occurs if you already have an alias linked to z when calling eval "$(zoxide init zsh)". Check that nothing else is using the z alias.

@BlairLeduc
Copy link

That's it!

I had the z plugin installed. I removed the plugin and I am good to go.

Thanks, @ajeetdsouza!

@ajeetdsouza
Copy link
Owner

No worries!

@vict0rsch
Copy link
Author

Ok removing z from Oh-My-Zsh's plugins list worked thanks

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

4 participants