aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-24 22:59:07 +0900
committernsfisis <nsfisis@gmail.com>2024-03-24 22:59:07 +0900
commit246330053e6ef509e415707154e2537b41d3c5d7 (patch)
treea38269ef3c2970f36e810e23ecdc777bc6aa337a
parent19fdbdddcd2dd0a43164dc50c0c0b840b2f8ae5c (diff)
downloaddotfiles-246330053e6ef509e415707154e2537b41d3c5d7.tar.gz
dotfiles-246330053e6ef509e415707154e2537b41d3c5d7.tar.zst
dotfiles-246330053e6ef509e415707154e2537b41d3c5d7.zip
fzf: set default command to feed input to fzf
-rw-r--r--.zshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 668ae7c..5a7c25f 100644
--- a/.zshrc
+++ b/.zshrc
@@ -379,6 +379,9 @@ else
fi
if type fzf >/dev/null 2>&1; then
+ if type fd >/dev/null 2>&1; then
+ export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --exclude .git'
+ fi
if type nvim >/dev/null 2>&1; then
function ee() {
if [[ -z "$1" ]]; then