dotfiles/zsh/.config/zsh/gpg.zsh

6 lines
217 B
Bash

# Configuration for gpg-agent, used with YubiKey and ssh
export GPG_TTY=$TTY
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye &>/dev/null