Install
use homebrew:
$ brew install autojump
load the plugin in ~/.zshrc
file:
plugins=(git autojump)
add the following line to your ~/.zshrc
file:
[[ -s brew --prefix
/etc/autojump.sh ]] && . brew --prefix
/etc/autojump.sh
source the file to update your current session:
$ source ~/.zshrc
Usage
Jump To A Directory That Contains foo:
$ j foo
Jump To A Child Directory:
$ jc bar
Open File Manager To Directories (instead of jumping):
$ jo music
Opening a file manager to a child directory is also supported:
$ jco images
see more: autojump