From 326e89aa8b20e7fdec7e5cc394a0dadfb60d1e81 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Fri, 6 Mar 2026 16:39:12 +0100 Subject: [PATCH] Tweak fzf a bit --- zsh/.zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 2e98f26..07dd03d 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -12,6 +12,9 @@ export PAGER="bat --wrap=never --paging=always --style=plain" # --style=plain is export LESS="-RSFX" export EDITOR=nvim +export FZF_DEFAULT_COMMAND='fd --hidden --type l --type f --type d --exclude .git --exclude .cache'; +export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" + set_custom_keybindings() { bindkey '^p' history-search-backward bindkey '^n' history-search-forward @@ -129,7 +132,7 @@ else alias wlc="wl-copy" alias wlp="wl-paste" fi -alias fzfd="fd --type d --hidden --follow --exclude .git | fzf" +alias fzfd="fd --type d --hidden --follow --exclude .git --exclude .cache | fzf" alias gs="clear -x; git status -sb; echo ""; git --no-pager log --oneline -4" alias gsu="git submodule update --init --recursive --force"