#!/usr/bin/env bash

set -euo pipefail

# tmux [session]
# if no arguments list sessions
# if arguments create or join a session named all the arguments joined

if [ $# == 0 ]; then
	tmux ls
else
	tmux a -t "$*" || tmux new -s "$*"
fi
