fzf: Ignore node_modules also without rg
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user