1
0
Fork 0

zsh: gpg-agent setup

This commit is contained in:
Luca Bilke 2024-11-15 14:23:10 +01:00
parent 2a51db5820
commit 95b1329963
Signed by: luca
GPG key ID: F6E11C9BAA7C82F5
2 changed files with 3 additions and 0 deletions
common/.config/zsh

View file

@ -140,6 +140,8 @@ do
esac
done
gpg-connect-agent updatestartuptty /bye
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"

View file

@ -19,4 +19,5 @@ do
source "${ZDOTDIR}/config/${f}.zsh"
done
gpg-connect-agent /bye
export GPG_TTY=$TTY