zoxide and fzf Integration

2025-11-30
25 min
Advanced Tips
Advanced

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:

  1. Verify installation
  2. Ensure fzf is in PATH
  3. Reload your shell config

Best Practices

  1. Use previews when helpful, not always
  2. Limit result count for large datasets
  3. Make aliases for your common workflows

Next Steps