Tmux session creation/attaching script.

This commit is contained in:
dabruh 2022-06-27 12:24:29 +02:00
parent 3cd601e7ea
commit 5ebfa20f02
1 changed files with 6 additions and 0 deletions

6
.local/bin/t Executable file
View File

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