Merge pull request #1215 from adawalli/fzf-fd

Use fd for fzf if available on system
pull/1218/head
Nils Winkler 2018-07-19 08:31:38 +02:00 committed by GitHub
commit 8668ff05ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ about-plugin 'load fzf, if you are using it'
[ -f ~/.fzf.bash ] && source ~/.fzf.bash [ -f ~/.fzf.bash ] && source ~/.fzf.bash
if [ -z ${FZF_DEFAULT_COMMAND+x} ]; then
command -v fd &> /dev/null && export FZF_DEFAULT_COMMAND='fd --type f'
fi
fe() { fe() {
about "Open the selected file in the default editor" about "Open the selected file in the default editor"
group "fzf" group "fzf"