From c44e7147bb6f9a245f1cf507d1beed7553fa79bc Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Thu, 3 Nov 2022 22:57:04 -0500 Subject: [PATCH] ssh update --- zshmux.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zshmux.zsh b/zshmux.zsh index 3bb4634..e51efa7 100644 --- a/zshmux.zsh +++ b/zshmux.zsh @@ -1,7 +1,6 @@ #!/bin/zsh - -if [[ -z $TMUX ]]; then - +if [[ -z $TMUX ]] && [[ -z $SSH_CLIENT ]]; then +if if [[ $(tmux list-sessions | wc -l) -ne 0 ]]; then if [[ $(tmux list-sessions -F"#{?session_attached,,x}" | grep "x" | wc -l) -eq 1 ]]; then -- 2.45.2