dotfiles/scripts/tmux-attach-or-new.sh
2021-02-04 22:41:27 +02:00

7 lines
79 B
Bash
Executable file

#!/bin/sh
if tmux has-session; then
exec tmux attach
else
exec tmux new
fi