Created
June 12, 2023 22:02
-
-
Save ferki/0fc114d2c92104dbe664672d5440f850 to your computer and use it in GitHub Desktop.
.bashrc excerpt for gpg settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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