From 85bd8a5c65a753627d3cf0af1122abeed54996b7 Mon Sep 17 00:00:00 2001 From: Kaholaz Date: Mon, 20 Feb 2023 00:26:36 +0100 Subject: [PATCH] Only connect to tmux if we connecting through ssh --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 28b6da3..2e400ff 100644 --- a/.zshrc +++ b/.zshrc @@ -41,7 +41,7 @@ else fi # Attach to a tmux session on startup -if [ -z "$TMUX" ]; then +if [ -z "$TMUX" ] && [ -n "$SSH_CLIENT" ]; then tmux attach -t Default || tmux new -s Default fi