1 #!/bin/sh 2 3 tmux ls 2> /dev/null | grep -q scratchpad && tmux attach-session -t scratchpad \ 4 || tmux new-session -s scratchpad