TL;DR — Quick Summary

Zoxide is a smarter cd that learns your most-used directories. Type z proj and jump to ~/projects/myapp — no more typing long paths.

Zoxide replaces cd with intelligence. Visit a directory once, then jump back with just a keyword. z proj finds ~/projects/myapp, z down finds ~/Downloads — it just works.

Installation

# macOS
brew install zoxide

# Arch Linux
sudo pacman -S zoxide

# Cargo
cargo install zoxide --locked

# Ubuntu/Debian
sudo apt install zoxide

# Add to shell (.bashrc / .zshrc)
eval "$(zoxide init bash)"
eval "$(zoxide init zsh)"
# Fish: zoxide init fish | source

Usage

# Jump to best match
z projects       # → ~/projects
z myapp          # → ~/projects/myapp
z down           # → ~/Downloads
z doc            # → ~/Documents

# Multiple keywords narrow the match
z proj my        # → ~/projects/myapp (not ~/projects/other)

# Interactive selection (requires fzf)
zi               # Opens fzf with all learned directories

# See learned directories
zoxide query --list

# Add a directory manually
zoxide add ~/important/path

# Remove a directory
zoxide remove ~/old/path

Comparison

FeatureZoxideautojumpz (bash)cd
SpeedVery fastSlowFastInstant
AlgorithmFrecencyFrequencyFrecencyExact
fzf supportYes (zi)NoNoNo
ShellsAll majorLimitedbash/zshAll
Written inRustPythonShellBuiltin

Summary

  • Zoxide learns your directories and lets you jump with z keyword
  • Frecency ranking: frequently + recently visited directories rank highest
  • Interactive mode (zi) with fzf for browsing all known directories
  • Works with bash, zsh, fish, PowerShell, Nushell, and more
  • Drop-in cd replacement — 10-100x faster than autojump