mac安装autojump

  1. brew install autojump

  2. 编辑 vim ~/.zshrc

  3. 找到 plugins=,在后面添加autojump:plugins=(git autojump)

  4. 新开一行,添加:[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh

  5. j + 跳转的目录