From fd2c3f611b123cd440efbc5b4fe31a314ec98123 Mon Sep 17 00:00:00 2001 From: druckdev Date: Mon, 12 Apr 2021 16:48:37 +0200 Subject: [PATCH] fzf: Ignore node_modules also without rg --- .config/zsh/.zprofile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 715ff3f..d093191 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -77,7 +77,10 @@ if (( $+commands[rg] )); then # Also respect gitignores FZF_DEFAULT_COMMAND="rg --hidden --files -g '!.git'" else - FZF_DEFAULT_COMMAND="find . -name '.git' -prune -o \( -type f -a -print \)" + FZF_DEFAULT_COMMAND="find ." + FZF_DEFAULT_COMMAND+=" -name '.git' -prune -o" + FZF_DEFAULT_COMMAND+=" -name 'node_modules' -prune -o" + FZF_DEFAULT_COMMAND+=" \( -type f -a -print \)" fi export FZF_DEFAULT_COMMAND