keychain: improve

- don't set pinentry manually, let local system manage it
- update cache-ttls to improve longevity
This commit is contained in:
Joel Beckmeyer 2024-02-21 17:10:40 -05:00
parent fa23d478cd
commit 15bf832b30
2 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ alias xrm='sudo xbps-remove'
# GPG setup (and SSH)
if command -v keychain >/dev/null; then
alias keychain="keychain --absolute --dir $XDG_RUNTIME_DIR"
eval "$(keychain --quiet --eval --agents gpg D7F966B85D985743C76A17AC5A9572AE7B2E7E1C)"
eval "$(keychain --quick --quiet --eval --agents gpg D7F966B85D985743C76A17AC5A9572AE7B2E7E1C)"
fi
if command -v gpgconf >/dev/null; then
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"

View File

@ -1,5 +1,5 @@
default-cache-ttl 86400
max-cache-ttl 86400
pinentry-program /usr/bin/pinentry-qt
allow-preset-passphrase
default-cache-ttl 60480000
default-cache-ttl-ssh 60480000
max-cache-ttl 60480000
max-cache-ttl-ssh 60480000
enable-ssh-support