From: Frederik Vanrenterghem Date: Sun, 11 Jun 2023 06:29:13 +0000 (+0800) Subject: Support GPG in KDE better. X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/commitdiff_plain/2ec571aa18cf2c098c9cd55987d41ccd79ca529d Support GPG in KDE better. --- diff --git a/bash/.bashrc b/bash/.bashrc index 0aa3228..84ee2e4 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -8,5 +8,11 @@ alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +fi + export GPG_TTY=$(tty) gpg-connect-agent updatestartuptty /bye >/dev/null +