summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-03-31 15:49:43 +0200
committerAhmed Abdelhalim <[email protected]>2021-03-31 15:49:43 +0200
commitd55d3fdd11da76d92725065dcaa353acc6ea57d1 (patch)
treefba168b82386344dc9486dfb1ba646d43875e746
parentf97953a4f04cfcda970b6eeb261c3b45d46f22fb (diff)
Fix the gpg/ssh auth socket configuration in sessions
-rw-r--r--.bash_profile6
1 files 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'