caio.co/de/dotfiles


Gimme a neater proccess list plz by Caio 6 years ago (log)

Blob bin/t

1
2
3
4
5
6
7
8
9
#!/bin/sh

SESSION=${1-scratch}

if tmux has-session -t $SESSION; then
    exec tmux attach -t $SESSION
else
    exec tmux new-session -s $SESSION
fi