Only connect to tmux if we connecting through ssh

This commit is contained in:
Kaholaz 2023-02-20 00:26:36 +01:00
parent 21cb44ba7e
commit 85bd8a5c65
Signed by: kaholaz
GPG key ID: 2EFFEDEE03519691

2
.zshrc
View file

@ -41,7 +41,7 @@ else
fi fi
# Attach to a tmux session on startup # 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 tmux attach -t Default || tmux new -s Default
fi fi