wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.19k stars 705 forks source link

autojump.sh does not work on Catalina zsh (have to `source autojump.zsh`) #589

Open zsiegel92 opened 4 years ago

zsiegel92 commented 4 years ago

When I installed Catalina, I figured I'd migrate from bash to zsh as per the default setting. Zsh sourced my entire ~/.bashrc with no problems EXCEPT the autojump.sh, which caused numerous errors. I don't know exactly what caused all the errors, but I did notice the following:

-autojump.sh overwrites $fpath, which caused all sorts of issues

I was able to fix this by changing the source ...etc/profile.d/autojump.sh (which is supposed to work on all shells) to source .../share/autojump/autojump.zsh

Rendiere commented 4 years ago

Hey @zsiegel92, I've found that by adding autojump to the list of plugins in the .zshrc file fixes this issue for me.

For example, now my .zshrc has this line:

plugins=(git autojump)

Hope this helps.