From e8c3237fb4c485139373ac3aeeb649522c0ba63c Mon Sep 17 00:00:00 2001 From: Adam Wallis Date: Tue, 17 Jul 2018 10:56:36 -0400 Subject: [PATCH] Use fd for fzf if available on system fd is orders of magnitude faster when searching for files. This patch will force fzf to use fd instead of find. This change is implemented per the recommendation: https://github.com/junegunn/fzf#environment-variables --- plugins/available/fzf.plugin.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/available/fzf.plugin.bash b/plugins/available/fzf.plugin.bash index 69775c75..5aacc37d 100644 --- a/plugins/available/fzf.plugin.bash +++ b/plugins/available/fzf.plugin.bash @@ -6,6 +6,8 @@ about-plugin 'load fzf, if you are using it' [ -f ~/.fzf.bash ] && source ~/.fzf.bash +command -v fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --type f' + fe() { about "Open the selected file in the default editor" group "fzf"