Use `fd` for fzf default_command if available.

This commit is contained in:
gardouille 2017-12-22 11:29:37 +01:00
parent 57327f9d06
commit 079b8ba2d4
1 changed files with 4 additions and 0 deletions

4
zshrc
View File

@ -1122,6 +1122,10 @@ if [[ ! "$PATH" == *"${HOME}"/.fzf/bin* ]]; then
export PATH="$PATH:${HOME}/.fzf/bin"
fi
if [ -f ~/bin/fd ]; then
export FZF_DEFAULT_COMMAND='fd --type f'
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "${HOME}/.fzf/shell/completion.zsh" 2> /dev/null