From a3fa9fa7f9766bac3a72ff9941e2afaa173b4b1b Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Thu, 31 Mar 2022 21:37:20 -0500 Subject: fix: correctly set gpg env vars --- bash/.profile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bash/.profile') diff --git a/bash/.profile b/bash/.profile index 33b9553..75629f5 100644 --- a/bash/.profile +++ b/bash/.profile @@ -8,6 +8,11 @@ export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/"$UID"} export ZDOTDIR="$XDG_CONFIG_HOME"/zsh export BASH_COMPLETION_USER_DIR="$XDG_DATA_HOME"/bash-completion/completions +# GPG/SSH +export GPG_TTY="$(tty)" +export GPG_AGENT_SOCK=$(gpgconf --list-dirs agent-socket) +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) + # Misc export EDITOR="$( command -v nvim 2>/dev/null || command -v vim 2>/dev/null || command -v vi )" export BROWSER="firefox" -- cgit v1.2.3-70-g09d2