zoxide
Smart cd replacement that remembers frequently used directories for quick navigation
zoxide is a directory navigation tool that replaces the standard cd command with intelligent frequency-based jumping. It tracks which directories you visit most often and allows you to navigate to them using partial matches and fuzzy search.
The tool uses a ranking algorithm to prioritize directories based on usage frequency and recency. Users can jump to directories with commands like z foo to match the highest-ranked directory containing "foo", or z foo bar to match directories containing both terms. It also supports interactive selection through zi which integrates with fzf for browsing options.
zoxide supports all major shells including bash, zsh, fish, PowerShell, and others. It works across Linux, macOS, Windows, and BSD systems. The tool maintains compatibility with regular cd functionality while adding the intelligence layer, so commands like z ~/foo and z ../ work as expected alongside the smart matching features.
Installation
# via Homebrew
brew install zoxide
# via Cargo
cargo install zoxide --locked
# via Install Script
curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh

Alternatives & related tools
Nushell
Structured data shell that treats commands and files as typed data rather than raw text streams
fish
Interactive command line shell with syntax highlighting, autosuggestions, and tab completions that work without configuration
atuin
Shell history management with SQLite storage, search interface, and encrypted sync across machines
starship
Cross-shell prompt that displays contextual information about Git repos, programming languages, and system status
genact
Terminal program that prints fake activity output (compilers, builds, botnets, downloads) to look busy. Runs natively or in a browser via WebAssembly.
add a badge to your README
Maintain zoxide? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/zoxide?utm_source=badge)<a href="https://www.trmn.sh/tools/zoxide?utm_source=badge"><img src="https://www.trmn.sh/badge/zoxide.svg" alt="Featured on trmn" height="20"></a>