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.
# 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
