zsh: add FZF_CTRL_T_COMMAND

fix-ci
bretello 2023-09-14 22:45:24 +02:00
parent 70aec3b2b6
commit c5532fea31
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,13 @@ antibody bundle < "$DOTFILES/antibody_plugins.txt"
source $DOTFILES/completion_style.zsh
source $DOTFILES/extras/fzf-tab-config.zsh
if command -v fd >/dev/null; then
export FZF_CTRL_T_COMMAND='fd'
else
export FZF_CTRL_T_COMMAND='find'
fi
export FZF_CTRL_T_OPTS=" --preview-window=right,60% --preview \"bash -c 'if [[ -d \"{}\" ]]; then tree -C \"{}\"; else bat --style=plain --color=always \"{}\"; fi'\" --bind 'ctrl-/:change-preview-window(right,70%|down,40%,border-horizontal|hidden|right)'"
if [[ "$(command -v systemctl)" ]]; then
antibody bundle robbyrussell/oh-my-zsh path:plugins/systemd
fi