if [ -z "$TMUX" ] && [ -n "$SSH_TTY" ]; then tmux attach-session -t ssh || tmux new-session -s ssh exit fi