add windows git config

This commit is contained in:
reeink 2024-03-08 22:10:00 +08:00
parent 6d8603f31f
commit a1cc013f52
No known key found for this signature in database
5 changed files with 23 additions and 0 deletions

9
dot_gitconfig.tmpl Normal file
View file

@ -0,0 +1,9 @@
{{- if eq .chezmoi.os "windows" -}}
{{- template "dot_gitconfig_windows.tmpl" . -}}
{{- else if eq .chezmoi.os "linux" -}}
{{- if (.chezmoi.kernel.osrelease | lower | contains "microsoft") -}}
{{- template "dot_gitconfig_wsl.tmpl" . -}}
{{- else -}}
{{- template "dot_gitconfig_linux.tmpl" . -}}
{{- end -}}
{{- end -}}