Use fd instead of ripgrep in zsh fzf plugin

This commit is contained in:
Marko Korhonen 2021-08-03 12:03:39 +03:00
parent ec490c0d32
commit 924cc4f807

View file

@ -24,10 +24,10 @@ rip() {
# make fzf zsh plugin use ripgrep # make fzf zsh plugin use ripgrep
_fzf_compgen_dir() { _fzf_compgen_dir() {
rg --hidden --files --null --sort path "$1" 2>/dev/null | xargs -0 dirname | uniq fd -Ht d
} }
_fzf_compgen_path() { _fzf_compgen_path() {
rg --files --hidden "$1" 2>/dev/null fd -Ht f
} }
# search and install packages with fzf # search and install packages with fzf