#!/bin/sh
pkill -9 gpg-agent

export GPG_TTY=$(tty)
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpg-connect-agent updatestartuptty /bye

gpgconf --create-socketdir