Skip to content

Instantly share code, notes, and snippets.

@ferki
Created June 12, 2023 22:02
Show Gist options
  • Save ferki/0fc114d2c92104dbe664672d5440f850 to your computer and use it in GitHub Desktop.
Save ferki/0fc114d2c92104dbe664672d5440f850 to your computer and use it in GitHub Desktop.
.bashrc excerpt for gpg settings
#gpg
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye &> /dev/null
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment