Zoxide
A smarter cd command
zzi
1. What is zoxide?
zoxide is a modern replacement for the cd command.
It learns which directories you use the most and lets you jump to them instantly—without typing long paths.
Traditional cd
With zoxide
That’s it.
2. Why use zoxide?
zoxide is useful because it:
- 🧠 Learns automatically from your directory usage
- ⚡ Saves keystrokes (jump with partial names)
- 🔍 Uses frecency (frequency + recency)
- 🐚 Works with zsh, bash, fish, nushell
- 🛠️ Is fast and written in Rust
If you frequently cd around your system, zoxide is a huge productivity boost.
3. Installing zoxide
macOS (Homebrew)
Linux (most distros)
or via cargo:
Verify installation
4. Enable zoxide in your shell
zoxide needs a small shell hook to work.
For zsh (most common on macOS)
Add this to ~/.zshrc:
Then reload:
For bash
Add to ~/.bashrc:
For fish
5. Basic usage
5.1 Jump to a directory
zoxide searches your directory history and jumps to the best match.
Example:
5.2 Partial matching (very powerful)
If you’ve visited:
zoxide picks the one you use most often.
5.3 Multiple keywords
Matches directories containing both words.
6. How does zoxide learn?
zoxide automatically records directories when you:
cdinto them- Use
zto jump
It does not scan your filesystem. It only learns from your behavior.
Over time, it becomes more accurate.
7. Useful commands
List known directories
Show match score
Jump using interactive selection (fzf)
If you have fzf installed:
You get a searchable list of all known directories.
8. Replace cd completely (optional)
If you want zoxide to feel native:
zsh alias
Now every cd becomes smart automatically.
⚠️ Optional, but many users love it.
9. Common beginner questions
❓ Is zoxide safe?
Yes.
- No background daemon
- No network access
- Stores a small local database
❓ Where is the data stored?
Usually in:
❓ Does it slow down the shell?
No. zoxide is extremely fast.
10. Typical workflow example
Later…
No long paths. No thinking.
11. zoxide vs autojump
| Feature | zoxide | autojump |
|---|---|---|
| Language | Rust | Python |
| Speed | ⚡ Fast | Slower |
| Matching | Better | Basic |
| Maintenance | Active | Less |
zoxide is generally considered the modern successor.
12. Summary
zoxide gives you:
- Faster navigation
- Less typing
- Smarter jumps
- Zero configuration after setup
If you use the terminal daily, zoxide is a must-have tool.