From 079b8ba2d4a14300e3e6c280fb553dc9bb560fa9 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 22 Dec 2017 11:29:37 +0100 Subject: [PATCH] Use `fd` for fzf default_command if available. --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshrc b/zshrc index 20518a8..e10fecf 100644 --- a/zshrc +++ b/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