zoxide and fzf Integration
Combine zoxide with fzf for powerful fuzzy selection of directories.
What is fzf-
- Fuzzy search for files and directories
- Interactive selection with preview
- Highly customizable
Installing fzf
macOS
Linux
Manual install
Basic Integration
Use fzf to pick a zoxide result
fish version
Advanced Integration
Add preview
Multi-select
Practical functions
Jump with preview
Search and open editor
Search then run a command
fzf Configuration
Custom theme
Custom preview command
Real-World Use
Quick project switching
Recent directories
Filter by type (git repos)
Performance Tips
- Limit results:
head -50 - Use lighter previews when data is large
Troubleshooting
If you see fzf: command not found:
- Verify installation
- Ensure
fzfis in PATH - Reload your shell config
Best Practices
- Use previews when helpful, not always
- Limit result count for large datasets
- Make aliases for your common workflows