mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 08:24:11 -06:00
- 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)
16 lines
428 B
Fish
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
|