zoxide is a smarter cd command written in Rust by Ajeet D'Souza, inspired by z and autojump. It remembers which directories you use most frequently, so you can "jump" to them in just a few keystrokes. With over 28k GitHub stars, it has revolutionized directory navigation for command-line users worldwide.
😤 Traditional cd Pain Points: Tired of typing long directory paths? Fed up with `cd ../../projects/my-app/src/components`? Frustrated with remembering exact directory names? zoxide learns your habits and lets you jump anywhere with just a few characters.
🚀 Why Latest Versions Matter: zoxide is actively developed with frequent releases containing performance improvements, new shell integrations, enhanced algorithms, and better compatibility. The latest versions include improved fuzzy matching, better shell support, and enhanced third-party integrations.
⚡ Key Features of zoxide
🧠 Smart Learning
Learns your directory usage patterns and ranks them by frequency and recency. The more you visit a directory, the easier it becomes to access.
🔍 Fuzzy Matching
Jump to directories with partial matches. Type just a few characters and zoxide will find the right directory based on your history.
🐚 Universal Shell Support
Works with bash, zsh, fish, PowerShell, Nushell, Elvish, Tcsh, and Xonsh. Consistent experience across all major shells.
🔌 Rich Integrations
Native integration with fzf for interactive selection, plus plugins for Vim, Emacs, file managers, and tmux session managers.
📊 Data Import
Import existing data from autojump, z, z.lua, fasd, and other directory jumpers. No need to start from scratch.
⚙️ Highly Configurable
Customizable scoring algorithm, exclude patterns, aging settings, and command prefixes. Adapts to your workflow preferences.
🏆 Productivity Benefits
Save Time: Jump to any directory in 2-3 keystrokes instead of typing full paths
Reduce Errors: No more typos in long directory paths
Learn Patterns: Automatically adapts to your most-used directories
Cross-Session: Remembers directories across terminal sessions
Interactive Mode: Use with fzf for visual directory selection
# For bash users
echo 'eval "$(zoxide init bash)"' >> ~/.bashrc
# For zsh users
echo 'eval "$(zoxide init zsh)"' >> ~/.zshrc
# For fish users
echo 'zoxide init fish | source' >> ~/.config/fish/config.fish
# Reload shell
source ~/.bashrc # or ~/.zshrc
🎯 基本使用示例
Smart directory jumping:
# Jump to directory containing "projects"
z projects
# Jump to directory matching "my" and "app"
z my app
# Jump to subdirectory starting with "src"
z src/
# Go back to previous directory
z -
# Interactive selection with fzf
zi
Traditional cd still works:
# Regular cd functionality
z ~/Documents
z ../
z /usr/local/bin
# Relative paths
z ./src/components
Advanced features:
# Query directories without jumping
zoxide query projects
# Add directory manually
zoxide add /path/to/directory
# Remove directory from database
zoxide remove /path/to/directory
# Import from other tools
zoxide import --from=autojump ~/.local/share/autojump/autojump.txt
zoxide import --from=z ~/.z
Customization:
# Use different command prefix (j instead of z)
eval "$(zoxide init bash --cmd j)"
# Replace cd command entirely
eval "$(zoxide init bash --cmd cd)"
# Echo directory before jumping
export _ZO_ECHO=1
# Exclude certain directories
export _ZO_EXCLUDE_DIRS="$HOME:$HOME/private/*"
🚀 为什么选择 deb-free.griffo.io?
📊 Repository Comparison:
Official Ubuntu: Available but often outdated versions
Cargo Install: Requires Rust toolchain and compilation
Install Script: Manual updates and no package management
deb.griffo.io (main): Latest version with automatic updates
✅ Latest Algorithm: Get newest scoring and matching improvements
✅ No Rust Compilation: Pre-built binaries, no toolchain needed
✅ Automatic Updates: Packages updated within hours of upstream releases
✅ Complete Package: Includes shell integration and documentation
✅ Multi-Distribution: Works on Jammy and Noble
✅ Easy Maintenance: Standard apt commands for updates
🎯 Perfect for: Developers who navigate complex directory structures, power users who want efficient terminal workflows, anyone tired of typing long paths, and users who appreciate intelligent automation in their tools.