fzf: Ignore node_modules also without rg

This commit is contained in:
2021-04-12 16:48:37 +02:00
parent b2962a5ce1
commit fd2c3f611b

View File

@@ -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