1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-12 05:40:17 +00:00

support more fzf commands

This commit is contained in:
Luna 2024-06-10 11:31:13 +02:00
parent c01c5fdd29
commit f1d14721b2

6
.zshrc
View file

@ -171,6 +171,7 @@ bindkey '^xe' edit-command-line
if iscmd fzf; then
source <(fzf --zsh);
export FZF_COMPLETION_OPTS='--border --info=inline --reverse'
export FZF_CTRL_R_OPTS="
--preview 'echo {}' --preview-window up:3:hidden:wrap
--bind 'ctrl-/:toggle-preview'
@ -186,6 +187,11 @@ if iscmd fzf; then
export FZF_ALT_C_OPTS="
--walker-skip .git,node_modules,target
--preview 'tree -C {}'"
if iscmd fd; then
_fzf_compgen_path() {
fd --hidden --follow --exclude ".git" . "$1"
}
fi
fi
if iscmd zoxide; then