Also check SSH_CLIENT to avoid running ssh-agent - dotfiles - leot's dotfiles
HTML hg clone https://bitbucket.org/iamleot/dotfiles
DIR Log
DIR Files
DIR Refs
---
DIR changeset 212116211ed717443551ce1421e75c6b3f8934a4
DIR parent 9b0754f0de3e446aa8cec2a7016b38549a4fd4ed
HTML Author: Leonardo Taccari <iamleot@gmail.com>
Date: Thu, 4 Jul 2019 02:15:15
Also check SSH_CLIENT to avoid running ssh-agent
Diffstat:
tcshrc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r 9b0754f0de3e -r 212116211ed7 tcshrc
--- a/tcshrc Wed Jul 03 01:27:26 2019 +0200
+++ b/tcshrc Thu Jul 04 02:15:15 2019 +0200
@@ -159,7 +159,7 @@
endif
# Start ssh-agent(1)
-if ((! $?SSH_AGENT_PID) && (! $?SSH_TTY )) then
+if ((! $?SSH_AGENT_PID ) && (! $?SSH_TTY ) && (! $?SSH_CLIENT )) then
eval `ssh-agent -c` > /dev/null
endif