From 01e5ae652b378ab7ef564fd8615914632f33a3d0 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:42:41 -0600 Subject: [PATCH] Update dot_hooks --- dot_hooks | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot_hooks b/dot_hooks index a7d3a2b..ffaa685 100644 --- a/dot_hooks +++ b/dot_hooks @@ -8,3 +8,9 @@ if [ $(command -v n) ]; then export N_PREFIX=$HOME/.n export PATH="$HOME/.n/bin:$PATH" fi + +{{- if eq .machinetype "workstation" }} +export GPG_TTY="$(tty)" +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent +{{- end }}