Qu\'est-ce que zoxide ?
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.
⚡ 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
apt upgrade vous garde toujours à la dernière version.
📦 Installation depuis deb.griffo.io
Étape 1 : Ajouter le dépôt
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt updateinstall -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt update🆓 Il existe un miroir gratuit pour toujours. deb-free.griffo.io distribue des paquets gratuitement pour toujours — sans compte, sans abonnement, au plus 2 mois derrière l'upstream, correctifs de sécurité immédiats. Il contient aujourd'hui cliamp, Ghostty, lazydocker, Oh My Posh et Zed ; zoxide n'en fait pas partie, le dépôt ci-dessus reste donc le seul moyen de l'installer — demandez-le et il pourra y être ajouté.
Étape 2 : Installer zoxide
# Install latest zoxide
sudo apt installer zoxide
# Vérifier l'installeration
zoxide --version# Install latest zoxide
apt installer zoxide
# Vérifier l'installeration
zoxide --versionStep 3: Set Up Shell Integration
# 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🎯 Exemples d'utilisation de base
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
ziTraditional cd still works:
# Regular cd functionality
z ~/Documents
z ../
z /usr/local/bin
# Relative paths
z ./src/componentsAdvanced 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 ~/.zCustomization:
# 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/*"🚀 Pourquoi choisir deb.griffo.io ?
- 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: 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
📦 Dépôt de construction de paquets
Les paquets Ubuntu sont automatiquement construits et maintenus dans ce dépôt GitHub :
- 📂 zoxide-debian - Latest release builds
🔗 Paquets associés
Également disponible depuis deb.griffo.io :
- fzf Fuzzy Finder - Perfect companion for interactive zoxide selection
- eza - Modern ls replacement for better directory listing
- Yazi File Manager - Integrates with zoxide for smart navigation