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
This commit is contained in:
Adam Wallis
2018-07-17 10:56:36 -04:00
parent f121bec2a1
commit e8c3237fb4

View File

@@ -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"