zprofile: Add -mindepth 1 to FZF_DEFAULT_COMMAND

Do not print `.`.
This commit is contained in:
2022-09-19 12:56:42 +02:00
parent 1dab31ecda
commit bed1ba1840

View File

@@ -96,7 +96,7 @@ if (( $+commands[rg] )); then
else else
# Fallback to hardcoding the most important paths to prune # Fallback to hardcoding the most important paths to prune
# NOTE: This version is used in keys.zsh for the ALT_C widget # NOTE: This version is used in keys.zsh for the ALT_C widget
FZF_DEFAULT_COMMAND="find -L . \(" FZF_DEFAULT_COMMAND="find -L . -mindepth 1 \("
FZF_DEFAULT_COMMAND+=" -name '.git' -o" FZF_DEFAULT_COMMAND+=" -name '.git' -o"
FZF_DEFAULT_COMMAND+=" -name '__pycache__' -o" FZF_DEFAULT_COMMAND+=" -name '__pycache__' -o"
FZF_DEFAULT_COMMAND+=" -name 'node_modules'" FZF_DEFAULT_COMMAND+=" -name 'node_modules'"