I\'m writing a shell script that creates / attaches or switches to a given session, depending on whether one is inside tmux and the session exists.
I\'ve got everything
The quickest way (assuming you use ctrl-b as your command prefix) is:
ctrl-b
ctrl-b :new
To create a new session, then
ctrl-b s
to interactively select and attach to the session.