Jump Between Folders With zoxide

Track visited directories and jump to them by typing a fragment.

macOSFilesTerminalcliLow risk
Add eval "$(zoxide init zsh)" to your shell profile, then type z <fragment> to jump.

01Command

Command
$ eval "$(zoxide init zsh)"
z proj

02What it does

zoxide remembers which directories you visit most and ranks them, so z proj can take you straight to ~/code/project. Initialize it once per shell in ~/.zshrc or ~/.bashrc, then use z instead of cd for fuzzy jumps. Use zi for an interactive picker.

03Risk

RiskLow risk
Requirementsbrew install zoxide
CompatibilitymacOS with Homebrew installed
!Warning: The first run after setup has no history; visit directories normally and the ranking builds up.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Homebrew formula: zoxide
    Homebrew · vendor-doc · 2026-09-20
    Evidence: Installs zoxide, a smarter cd command.
  • ajeetdsouza/zoxide
    GitHub · vendor-doc · 2026-09-20
    Evidence: Documents zoxide init for each shell and the z query.

Last verified: 2026-09-20 · Category: Files & Folders

06Related solutions