From 0ffd542d0b47bf6295eb4af13f36975baef7600e Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 19 Sep 2022 12:23:16 +0200 Subject: [PATCH] zprofile: Cleanup comments to FZF_DEFAULT_COMMAND --- .config/zsh/.zprofile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 7f34bc3..8271b2e 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -90,11 +90,11 @@ LESS+="${LESS:+ }--RAW-CONTROL-CHARS" LESS+="${LESS:+ }--quit-if-one-screen" export LESS -# Show also hidden files per default but ignore files in '.git' directories. if (( $+commands[rg] )); then - # Also respect gitignores + # Prune `.git/` and everything ignored by gitignore(5) FZF_DEFAULT_COMMAND="rg --hidden --files -g '!.git'" else + # Fallback to hardcoding the most important paths to prune FZF_DEFAULT_COMMAND="find . \(" FZF_DEFAULT_COMMAND+=" -name '.git' -o" FZF_DEFAULT_COMMAND+=" -name '__pycache__' -o"