Figure out gpg shit for keychain, update key.

master
josiah 2 years ago
parent 0f0b64ad37
commit 66560519ed

@ -70,7 +70,17 @@ if [ -x /usr/bin/dircolors ]; then
fi
# handle key management through `keychain` because its great
## first set up gpg agent
[ -f ~/.gpg-agent-info ] && source ~/.gpg-agent-info
if [ -S "${GPG_AGENT_INFO%%:*}" ]; then
export GPG_AGENT_INFO
else
eval $( gpg-agent --daemon --write-env-file ~/.gpg-agent-info )
fi
## then configure keychain
eval $(keychain --eval --quiet ~/.ssh/{awful-git,github,digitalocean,home-net})
eval $(keychain --gpg2 --agents gpg)
# host specific configurations:
if [ "$HOSTNAME" = "nixon" ]; then

Binary file not shown.

@ -0,0 +1,6 @@
default-cache-ttl 31536000
max-cache-ttl 31536000
log-file /var/log/gpg-agent
debug-level basic
pinentry-program /run/current-system/sw/bin/pinentry
use-agent
Loading…
Cancel
Save