Files
dotfiles/home/dot_config/fish/functions/zi.fish
Xevion 349b23e025 refactor: replace lazy zoxide with eager init and add fd-based directory discovery
- Switch from lazy-loaded z/zi to eager zoxide initialization in config.fish
- Alias cd to use zoxide for automatic frecency tracking
- Add Alt+D: discover directories from git root/cwd with fd+fzf (no gitignore)
- Add Alt+Shift+D: discover directories from HOME with fd+fzf (depth 5)
2026-01-09 13:06:57 -06:00

16 lines
428 B
Fish

# Interactive zoxide with fzf (initialization handled in config.fish)
function zi --description "zoxide interactive smart cd"
# Configure fzf options for zoxide interactive mode
set -gx _ZO_FZF_OPTS '
--preview="lsd -1 --color=always --icon=always {2..}"
--preview-window=down,30%
'
if command -q zoxide
__zoxide_zi $argv
else
echo "zoxide is not installed" >&2
return 1
end
end