add template to gpg-agent.conf
This commit is contained in:
parent
51d6487cc2
commit
b219b5cc6b
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +0,0 @@
|
|||
default-cache-ttl 300
|
||||
max-cache-ttl 999999
|
||||
pinentry-program /usr/bin/pinentry-qt
|
9
private_dot_gnupg/private_gpg-agent.conf.tmpl
Normal file
9
private_dot_gnupg/private_gpg-agent.conf.tmpl
Normal 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 -}}
|
Loading…
Reference in a new issue