From bed1ba1840d2db5308a116b8cda4262dfbab4497 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 19 Sep 2022 12:56:42 +0200 Subject: [PATCH] zprofile: Add `-mindepth 1` to FZF_DEFAULT_COMMAND Do not print `.`. --- .config/zsh/.zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index e0ead35..1efca73 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -96,7 +96,7 @@ if (( $+commands[rg] )); then else # Fallback to hardcoding the most important paths to prune # 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 '__pycache__' -o" FZF_DEFAULT_COMMAND+=" -name 'node_modules'"