diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 31c5313..8c36c41 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -81,14 +81,18 @@ {{- end }} {{- if .signingkey }} signingKey = {{ .signingkey }} +{{- else }} + signingKey = ~/.ssh/id_ed25519.pub {{- end }} [tag] forceSignAnnotated = true [commit] gpgSign = true [gpg] -{{- if eq .chezmoi.os "windows" }} +{{- if .signingkey }} +{{- if eq .chezmoi.os "windows" }} program = "C:\\Program Files (x86)\\gnupg\\bin\\gpg.exe" +{{- end }} {{- else }} format = ssh {{- end }}