summaryrefslogtreecommitdiffstatshomepage
path: root/gnupg/.config/profile.d/20-gnupg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gnupg/.config/profile.d/20-gnupg.sh')
-rw-r--r--gnupg/.config/profile.d/20-gnupg.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnupg/.config/profile.d/20-gnupg.sh b/gnupg/.config/profile.d/20-gnupg.sh
new file mode 100644
index 0000000..25e9033
--- /dev/null
+++ b/gnupg/.config/profile.d/20-gnupg.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+GPG_AGENT_SOCK="$(gpgconf --list-dirs agent-socket)"
+SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
+
+export GPG_AGENT_SOCK SSH_AUTH_SOCK