Fix gpg env setup

This commit is contained in:
Marko Korhonen 2020-12-17 00:03:06 +02:00
parent 0221928719
commit dca64d7a4c
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5

View file

@ -36,8 +36,8 @@ export PAGER="nvimpager -p"
# use gpg for ssh
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
gpg-connect-agent updatestartuptty /bye > /dev/null
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
# tehfuk
eval $(thefuck --alias)