Mercurial > dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
461:eb8891b1a6f5 | 462:4f6af3e668eb |
---|---|
186 #set -x FZF_DEFAULT_OPTS "--color fg:-1,bg:-1,hl:$blue,fg+:$base02,bg+:$base2,hl+:$blue --color info:$yellow,prompt:$yellow,pointer:$base03,marker:$base03,spinner:$yellow" | 186 #set -x FZF_DEFAULT_OPTS "--color fg:-1,bg:-1,hl:$blue,fg+:$base02,bg+:$base2,hl+:$blue --color info:$yellow,prompt:$yellow,pointer:$base03,marker:$base03,spinner:$yellow" |
187 end | 187 end |
188 | 188 |
189 _gen_fzf_default_opts | 189 _gen_fzf_default_opts |
190 | 190 |
191 if type -q ag | 191 # Use fd, silver-searcher for searching if possible (in that order). |
192 # Use Ag for searching. | 192 if type -q fd |
193 set -x FZF_DEFAULT_COMMAND 'fd --type f' | |
194 else if type -q ag | |
193 set -x FZF_DEFAULT_COMMAND 'ag --nocolor -g ""' | 195 set -x FZF_DEFAULT_COMMAND 'ag --nocolor -g ""' |
194 end | 196 end |
195 | 197 |
196 # Use the default command for searching in Fisherman's FZF plugin. | 198 # Use the default command for searching in Fisherman's FZF plugin. |
197 set -x FZF_FIND_FILE_COMMAND $FZF_DEFAULT_COMMAND | 199 set -x FZF_FIND_FILE_COMMAND $FZF_DEFAULT_COMMAND |