]> git.vanrenterghem.biz Git - Dotty.git/commitdiff
Support GPG in KDE better.
authorFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Sun, 11 Jun 2023 06:29:13 +0000 (14:29 +0800)
committerFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Sun, 11 Jun 2023 06:29:13 +0000 (14:29 +0800)
bash/.bashrc

index 0aa32287d5f918baf8fd8398274052befbb8b6d9..84ee2e478907d829fe2d82f340971c5c64008a3c 100644 (file)
@@ -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
+