From 8773d729ed6626fbb9924c9aeb18c73652d5b9b8 Mon Sep 17 00:00:00 2001 From: Nicola Belluti Date: Tue, 10 Mar 2026 10:15:39 +0100 Subject: [PATCH] Find the `.gitconfig` inside `Projects`, even if it's a link --- home/private_dot_config/git/config.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/private_dot_config/git/config.tmpl b/home/private_dot_config/git/config.tmpl index f51392f..f61b283 100644 --- a/home/private_dot_config/git/config.tmpl +++ b/home/private_dot_config/git/config.tmpl @@ -20,7 +20,7 @@ helper = {{ $credentialHelperPath }} {{- $projectsDir := joinPath .chezmoi.homeDir "Projects" }} {{- if stat $projectsDir }} -{{- $projects := output "find" $projectsDir "-type" "f" "-mindepth" "2" "-maxdepth" "2" "-name" ".gitconfig" | trim | splitList "\n" }} +{{- $projects := output "find" "-L" $projectsDir "-type" "f" "-mindepth" "2" "-maxdepth" "2" "-name" ".gitconfig" | trim | splitList "\n" }} {{- range $projects }} {{- if . }} [includeIf "gitdir:{{ . | dir }}/**/"]