[scripts] add my secret tmux attaching script

This commit is contained in:
Dmytro Meleshko 2021-02-04 22:41:27 +02:00
parent 3f7c26f124
commit 871aa910da

6
scripts/tmux-attach-or-new.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
if tmux has-session; then
exec tmux attach
else
exec tmux new
fi