dotfiles/.local/bin/t
2022-06-27 12:24:29 +02:00

6 lines
138 B
Bash
Executable file

#!/bin/bash
EXISTS=false
tmux ls | cut -d: -f1 | grep -q "^${1:?}$" && EXISTS=true
$EXISTS && tmux a -t "$1"
$EXISTS || tmux new -s "$1"