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

Created on 20 Oct 2019  ·  1Comment  ·  Source: wting/autojump

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"

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:

plugins=(git autojump)

Hope this helps.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings