Autojump 自己是这么描述的:
autojump is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line.
安装:
- 建议安装 zsh
- 建议安装 homebrew
brew install autojump
-
在
.zshrc
中找到plugins=
,在后面添加plugins=(git autojump)
-
然后继续在上述文件中添加
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
-
source ~/.zshrc