mirror of
https://gitlab.com/dabruh/dotfiles.git
synced 2025-01-26 02:58:10 +01:00
Tmux session creation/attaching script.
This commit is contained in:
parent
3cd601e7ea
commit
5ebfa20f02
1 changed files with 6 additions and 0 deletions
6
.local/bin/t
Executable file
6
.local/bin/t
Executable 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"
|
Loading…
Reference in a new issue