From bf9ca6d3839d1e35dbeb089564dafa09b7dcc5e7 Mon Sep 17 00:00:00 2001 From: Livie Date: Fri, 1 Mar 2024 20:05:28 +0200 Subject: [PATCH] Fix fzf configs --- zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 6e93320..5e2f722 100644 --- a/zshrc +++ b/zshrc @@ -54,6 +54,8 @@ fi # fzf opts #export FZF_COMPLETION_OPTS='' +export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude ".git"' +export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" # fd use for fzf _fzf_compgen_path() { @@ -61,6 +63,6 @@ _fzf_compgen_path() { } _fzf_compgen_dir() { - fd --type d --hidden --follow ^^exclude ".git" . "$1" + fd --type d --hidden --follow --exclude ".git" . "$1" }