1#!/bin/bash23# A simple script to speed up connecting to/creating tmux sessions.4#5# If the given workspace exists, connect to it. Otherwise, create it.67if ! command -v tmux; then8 echo 'Please install tmux'9 exit 110fi1112if [[ $# -eq 0 ]]; then13 workspace='default'14elif [[ $# -eq 1 ]]; then15 workspace="$1"16else17 echo 'usage: t <WORKSPACE>'18fi1920exec tmux new-session -A -s "$workspace"