add env vars for {ssh,gpg}-agent

This commit is contained in:
Steffen Vogel 2019-11-21 11:07:46 +01:00
parent dde077f63c
commit 3a757c5d93
1 changed files with 7 additions and 0 deletions

View File

@ -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}