add template to gpg-agent.conf

This commit is contained in:
Simon Rieger 2023-08-27 17:55:31 +02:00
parent 51d6487cc2
commit b219b5cc6b
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +0,0 @@
default-cache-ttl 300
max-cache-ttl 999999
pinentry-program /usr/bin/pinentry-qt

View file

@ -0,0 +1,9 @@
default-cache-ttl 300
max-cache-ttl 999999
{{ if eq .chezmoi.os "darwin" -}}
# macOS contents
pinentry-program /opt/homebrew/bin/pinentry-mac
{{ else if eq .chezmoi.os "linux" -}}
# Linux contents
pinentry-program /usr/bin/pinentry-qt
{{ end -}}