When installing from homebrew autojump, the first step is to add those lines to our bash/zsh files:
Add the following line to your ~/.bash_profile or ~/.zshrc file:
[ -f $HOMEBREW_PREFIX/etc/profile.d/autojump.sh ] && . $HOMEBREW_PREFIX/etc/profile.d/autojump.sh
$HOMEBREW_PREFIX is not setup by default
For a more reliable option the documentation can use this:
Add the following line to your ~/.bash_profile or ~/.zshrc file:
[ -f "$(brew --prefix)/etc/profile.d/autojump.sh" ] && . "$(brew --prefix)/etc/profile.d/autojump.sh"