Use `fd` for fzf default_command if available.
This commit is contained in:
parent
57327f9d06
commit
079b8ba2d4
4
zshrc
4
zshrc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue