Использование fd для поиска файлов

This commit is contained in:
Andrei Astafev 2022-12-23 16:44:02 +03:00
parent b1ab03e165
commit 8364968e2f

View File

@ -47,6 +47,12 @@ if command -v git-lfs > /dev/null 2>&1; then
fi
if command -v fzf > /dev/null 2>&1; then
FZF_DEFAULT_OPTS='--height 60% --layout=reverse --border'
if command -v fd > /dev/null 2>&1; then
FZF_DEFAULT_COMMAND="fd --type f"
FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
FZF_ALT_C_COMMAND="fd --type d"
fi
if is-at-least "0.34" "$(fzf --version | awk '{ print $1; }')"; then
zinit ice lucid wait'0' mv"completion.zsh -> _fzf" pick"_fzf" as"completion"
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/completion.zsh