Mercurial > dotfiles
diff fish/config.fish @ 462:4f6af3e668eb
Use fd for fzf if available.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 14 Jan 2019 20:49:49 -0800 |
parents | 9a046e8fe5dd |
children | 9df781913175 |
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