zoxide logo

zoxide

Smart cd replacement that remembers frequently used directories for quick navigation

install

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

zoxide tutorial demonstration

Alternatives & related tools

add a badge to your README

Maintain zoxide? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/zoxide.svg)](https://www.trmn.sh/tools/zoxide?utm_source=badge)
HTML
<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>