mirror of https://gitlab.com/dabruh/dotfiles.git
Tmux session creation/attaching script.
This commit is contained in:
parent
3cd601e7ea
commit
5ebfa20f02
|
@ -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 New Issue