#!/bin/sh # SESSION=$(tmux display-message -p '#S' 2> /dev/null) if [ "$SESSION" = "" ]; then tmux attach-session -t default_ssh || tmux new-session -s default_ssh fi