aboutsummaryrefslogtreecommitdiffstats
path: root/home-dots
diff options
context:
space:
mode:
Diffstat (limited to 'home-dots')
-rw-r--r--home-dots/dot-bashrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/home-dots/dot-bashrc b/home-dots/dot-bashrc
index ae13f2b..1641221 100644
--- a/home-dots/dot-bashrc
+++ b/home-dots/dot-bashrc
@@ -68,9 +68,11 @@ PROMPT_COMMAND=__prompt_command
export EDITOR='emacsclient'
# GPG agent with ssh
-unset SSH_AGENT_PID
-if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
- export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
+if [ -z "$SSH_CLIENT" ]; then
+ unset SSH_AGENT_PID
+ if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
+ export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
+ fi
fi
# For python lsp