moovweb/gvm

Startup error when having `cd` already set as alias

ad-on-is opened this issue · 7 comments

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 `()'

did you find a fix for this?

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.

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.