brewでautojumpをInstall


インストール

command
brew install autojump

設定ファイルの設定

autojumpの設定を.bash_profileに設定

.bash_profile
# autojump setting
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh

設定を反映

command
source ~/.bash_profile

autojumpの補完設定

リンクをコピーします。
コピーはroot権限がないと行えないので、
sudoコマンドを使用して実行しています。

command
sudo cp /usr/local/Cellar/autojump/21.3.0/share/zsh/site-functions/_j /usr/share/zsh/site-functions

※注意

パス内の/21.3.0/はautojumpのバージョンによって異なるので、
ダウンロードしたバージョンに合わせてパスを変更してください。

参考URL