Fast directory jumper that remembers frequently used directories for quick navigation in any shell
zoxide is a directory navigation tool that replaces the standard cd command with intelligent path jumping based on usage frequency. It tracks which directories you visit most often and allows you to navigate to them using partial matches, eliminating the need to type full paths.
The tool provides several navigation modes: z foo jumps to the highest-ranked directory matching "foo", z foo bar matches directories containing both terms, and zi foo opens an interactive selection menu using fzf. It also supports standard cd operations like relative paths, parent directory navigation, and previous directory switching with z -.
zoxide works across all major shells including bash, zsh, fish, PowerShell, and Nushell, requiring only shell initialization after installation. The tool runs on Linux, macOS, Windows, BSD systems, and Android via Termux. It uses a ranking algorithm that considers both frequency (frecency) and recency of directory visits to provide accurate jump targets.
The tool is particularly useful for developers and power users who frequently navigate between project directories, as it learns usage patterns and reduces typing overhead for common navigation tasks. Installation is available through system package managers, Homebrew, cargo, or a provided install script.
# 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
