]> git.huck.website - zshmux.git/commitdiff
ssh update
authorHuck Boles <huboles@protonmail.com>
Fri, 4 Nov 2022 03:57:04 +0000 (22:57 -0500)
committerHuck Boles <huboles@protonmail.com>
Fri, 4 Nov 2022 03:57:04 +0000 (22:57 -0500)
zshmux.zsh

index 3bb46349d7d3c1e5d72c4499ba880fa679ef47e2..e51efa7dd3f84ef3cd63071bca7eb093b9221070 100644 (file)
@@ -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