From d55d3fdd11da76d92725065dcaa353acc6ea57d1 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 31 Mar 2021 15:49:43 +0200 Subject: Fix the gpg/ssh auth socket configuration in sessions --- .bash_profile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.bash_profile b/.bash_profile index 07a11df..1b903e3 100644 --- a/.bash_profile +++ b/.bash_profile @@ -12,16 +12,14 @@ export PS1="[a14m] \W \$ " export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export GPG_TTY=$(tty) +unset SSH_AGENT_PID +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) # ==== bash completion if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi -# ==== GPG SSH Configurations -unset SSH_AGENT_PID -[[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]] && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" - # ==== Aliases alias wttr='curl http://wttr.in/berlin' alias la='ls -a' -- cgit v1.2.3