#!/usr/bin/env bash if [[ "x$1" == x ]] ; then \tmux list-sessions || { \tmux new-session -d } exec \tmux attach-session -d fi exec \tmux $@