1
0

Find the .gitconfig inside Projects, even if it's a link

This commit is contained in:
2026-03-10 10:15:39 +01:00
parent a73b98930a
commit 8773d729ed

View File

@@ -20,7 +20,7 @@ helper = {{ $credentialHelperPath }}
{{- $projectsDir := joinPath .chezmoi.homeDir "Projects" }} {{- $projectsDir := joinPath .chezmoi.homeDir "Projects" }}
{{- if stat $projectsDir }} {{- 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 }} {{- range $projects }}
{{- if . }} {{- if . }}
[includeIf "gitdir:{{ . | dir }}/**/"] [includeIf "gitdir:{{ . | dir }}/**/"]