From: Huck Boles Date: Fri, 4 Nov 2022 03:57:04 +0000 (-0500) Subject: ssh update X-Git-Tag: v1.1~1 X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=c44e7147bb6f9a245f1cf507d1beed7553fa79bc;p=zshmux.git ssh update --- 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