* fix(autojump): fix autojump sourcing in nix (-darwin)
This plugin expects to source an sh/zsh file which sets up autojump, but
that is not done when running Nix on macos using nix-darwin. Looking at
the old value (/etc/profiles/per-user/$USER/bin/autojump), it points to a
binary file instead of the setup script.
* Use zsh file instead of sh
On M1-Macs homebrew uses /opt/homebrew as default location for ARM
packages. This results in the autojump plugin not being able to find
autojump after a clean default installation.
This commit adds the new default location to the autojump plugin.
The `commands[autojump]` block errs out when autojump is not found, and the rest, which is intended to be used for loading `autojump`, does not get executed.
* Fix autojump sourcing on OSX with Macports
The last version of autojump available on Macports does not have
anymore different shell scripts (.sh, .zsh, .bash ...) to be sourced
but just one autojump.sh that takes care of that located at
/opt/local/etc/profile.d/autojump.sh
fix # 4625
* Fix bug with macports autojump on OSX.
If you manually install autojump as advised by the autojump README by running
the install.sh script, it will install by default to $HOME/.autojump.
Add an extra case in the zsh autojump plugin to find the new file and stop a
syntax error in the else clause every time a new zsh starts (running brew when
brew does not exist).