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

Startup error when having cd already set as alias #463

Open
ad-on-is opened this issue Feb 21, 2024 · 3 comments
Open

Startup error when having cd already set as alias #463

ad-on-is opened this issue Feb 21, 2024 · 3 comments

Comments

@ad-on-is
Copy link

I'm using zoxide which creates an alias for cd

This results in gvm throwing errors on startup of zsh.

/home/adonis/.gvm/scripts/env/cd:46: defining function based on alias `cd'
/home/adonis/.gvm/scripts/env/cd:46: parse error near `()'
@MushiTheMoshi
Copy link

did you find a fix for this?

@viktornordling
Copy link

I had this too, and just figured out how to solve it.

So the issue is that you already have an alias named cd. The solution is to either remove that alias, or just run unalias cd before that line. See https://stackoverflow.com/questions/76638009/zsh-script-is-throwing-a-syntax-error-parse-error-near.

@viktornordling
Copy link

Well, now I can't actually use cd at all, as in, when I type cd .. or cd any-dir, I don't actually change directory. FML, I give up.

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

3 participants