From 3a757c5d934d9fbb101fa78256d51d9aa9f3308e Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 21 Nov 2019 11:07:46 +0100 Subject: [PATCH] add env vars for {ssh,gpg}-agent --- home/.bash_env | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/.bash_env b/home/.bash_env index bfc893f..1c74c7e 100644 --- a/home/.bash_env +++ b/home/.bash_env @@ -1,3 +1,10 @@ +export GPG_TTY=$(tty) + +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +fi + export GOPATH=~/build/go export PATH=~/bin/scripts:~/bin:/usr/local/bin:${PATH}