From 47888fe8f42fb2552724d04074a84ff06358938f Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Sun, 14 Jul 2019 13:09:22 +0200 Subject: [PATCH] Use ripgrep for fzf completion --- zsh/custom.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/custom.zsh b/zsh/custom.zsh index cccafdf..c464261 100644 --- a/zsh/custom.zsh +++ b/zsh/custom.zsh @@ -33,6 +33,9 @@ if type rg > /dev/null; then # Use ripgrep instead of find and exclude .gitignored files export FZF_DEFAULT_COMMAND='rg --files' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" + _fzf_compgen_path() { + rg --files "$1" + } fi swth()