Find the .gitconfig inside Projects, even if it's a link
This commit is contained in:
@@ -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 }}/**/"]
|
||||
|
||||
Reference in New Issue
Block a user