From 9778a1bcd58276333fbf7fae4c76a73024ac6a48 Mon Sep 17 00:00:00 2001 From: Nicola Belluti Date: Sun, 12 Oct 2025 12:29:22 +0200 Subject: [PATCH] Added the libsecret helper for Git --- home/private_dot_config/git/config.tmpl | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/home/private_dot_config/git/config.tmpl b/home/private_dot_config/git/config.tmpl index 0f41b6b..e932987 100644 --- a/home/private_dot_config/git/config.tmpl +++ b/home/private_dot_config/git/config.tmpl @@ -1,9 +1,19 @@ [user] - email = {{ .email }} - name = {{ .git_name }} +email = {{ .email }} +name = {{ .git_name }} [init] - defaultBranch = main +defaultBranch = main [merge] - ff = true +ff = true + +{{- $credentialHelperPath := "" }} +{{- if eq .chezmoi.osRelease.id "arch" }} +{{- $credentialHelperPath = "/usr/lib/git-core/git-credential-libsecret" }} +{{- end }} + +{{- if $credentialHelperPath }} +[credential] +helper = {{ $credentialHelperPath }} +{{- end }}