From b4c635839042ec069a86dc36717d19722c2da9d0 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Thu, 5 Dec 2019 19:01:55 +0100 Subject: [PATCH] check for SSH_CONNECTION var (ty tmux) --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 675fbc6..c3b4a0f 100644 --- a/zshrc +++ b/zshrc @@ -35,8 +35,8 @@ fi # GPG/SSH ## Void: Install pcsclite, pcsc-ccid, gnupg2-scdaemon ## Yubico openpgp: https://support.yubico.com/support/solutions/articles/15000006420-using-your-yubikey-with-openpgp -# Run if NOT ssh session -if [ -z "$SSH_CLIENT" ] || [ -z "$SSH_TTY" ]; then +# Run if ALL variables are not set +if [ -z "$SSH_CONNECTION" ] && [ -z "$SSH_CLIENT" ] && [ -z "$SSH_TTY" ]; then if [[ "$OSTYPE" == 'darwin'* ]]; then eval `ssh-agent` ssh-add -t 48h -s $OPENSC_LIBS/opensc-pkcs11.so