autojump 使用

autojump 使用

autojump 可以记录我们最近使用过的目录,让你跳转文件夹更加快捷。

建议配合zsh一起使用

安装

使用brew 安装 autojump

1
brew install autojump

在.zshrc 中的plusins中添加 autojump

1
2
3
4
plugins=(
git
autojump
)

文件末尾添加

1
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh

使用方法

1
j directoryName

好了,现在可以自由穿梭在各个目录中了。