Mercurial > dotfiles
changeset 462:4f6af3e668eb
Use fd for fzf if available.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 14 Jan 2019 20:49:49 -0800 |
parents | eb8891b1a6f5 |
children | b7eb9c9bd3b4 |
files | fish/config.fish |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/fish/config.fish Tue Apr 09 00:11:42 2019 -0700 +++ b/fish/config.fish Mon Jan 14 20:49:49 2019 -0800 @@ -188,8 +188,10 @@ _gen_fzf_default_opts - if type -q ag - # Use Ag for searching. + # Use fd, silver-searcher for searching if possible (in that order). + if type -q fd + set -x FZF_DEFAULT_COMMAND 'fd --type f' + else if type -q ag set -x FZF_DEFAULT_COMMAND 'ag --nocolor -g ""' end