From c8d0a8c8551d820bec1df9fabc787a6b70f4f9c5 Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Tue, 15 Feb 2022 01:59:57 +0000 Subject: [PATCH] Add support for gpg-agent Load gpg-agent and ensure compatibility for SSH and other services. This is needed to use smartcard based GPG authentication --- zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zshrc b/zshrc index 999b10a..0cac2a5 100755 --- a/zshrc +++ b/zshrc @@ -59,6 +59,13 @@ _comp_options+=(globdots) zle -N edit-command-line bindkey "" edit-command-line +## Enable gpg-agent support + +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent +gpg-gpg-connect-agent /bye +export GPG_TTY=$(tty) + ## Load external stuff ## support for opam