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
The installer said something about adding to my .zshrc in zsh, so I think it correctly identified my shell. However, it did not correctly source.
The source /etc/profile.d/autojump.sh DOES work in bash for me.
I experienced this exact problem installing with 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.
Maybe this is the expected behavior, but I don't think the documentation makes clear "add the correct version to your .rc file"
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 theautojump.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 issuesI was able to fix this by changing the
source ...etc/profile.d/autojump.sh
(which is supposed to work on all shells) tosource .../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 inusr/local
) and by cloning the repository then calling./install.py
(which installs in~/.autojump
). In both cases, regardless of which folder I was finding theautojump.zsh
, I had this issue.