# Tmux on terminal start, unless we're in a SSH connection if status is-interactive if test -z "$SSH_CONNECTION" if not tmux has-session 2>/dev/null; or test -z "$TMUX" exec tmux new-session -A -s 0 end end end