summaryrefslogtreecommitdiffstatshomepage
path: root/gnupg
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-02-10 16:53:03 -0600
committerToby Vincent <tobyv13@gmail.com>2023-02-10 19:52:19 -0600
commite712243be494a4158901014faad7ec67ceb809e5 (patch)
tree6d44ad0eff41f06e96609fd0d2c874fdda6c8b44 /gnupg
parent8cf873086c3a49fdc0f4aff5b5042c40f32b8537 (diff)
feat: split `.profile` to individual files
split `$XDG_CONFIG_HOME/.profile` up into `$XDG_CONFIG_HOME/profile.d` directory. This allows for better management and prioritization between different tool's env.
Diffstat (limited to 'gnupg')
-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