Command | Description |
---|---|
z foo |
cd into highest ranked directory matching foo |
z foo bar |
cd into highest ranked directory matching foo and bar |
z foo / |
cd into a subdirectory starting with foo |
z ~/foo |
z also works like a regular cd command |
z foo/ |
cd into relative path |
z .. |
cd one level up |
z - |
cd into previous directory |
zi foo |
cd with interactive selection (using fzf) |
z foo space tab |
show interactive completions |
Install zoxide with Homebrew.
brew install zoxide
Get Zsh and Fish configurations for zoxide from Dotfiles with wget.
wget -P ~/.config/zsh/zshrc https://raw.githubusercontent.com/lukejanicke/dotfiles/master/.config/zsh/zshrc/zoxide.zsh
wget -P ~/.config/fish/conf.d https://raw.githubusercontent.com/lukejanicke/dotfiles/master/.config/fish/conf.d/zoxide.fish