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
.zshrc
in zsh, so I think it correctly identified my shell. However, it did not correctly source.source /etc/profile.d/autojump.sh
DOES work in bash for me.brew install autojump
(which installs in usr/local
) and by cloning the repository then calling ./install.py
(which installs in ~/.autojump
). In both cases, regardless of which folder I was finding the autojump.zsh
, I had this issue.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.
Most helpful comment
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:
Hope this helps.