dotfiles/scripts/tmux-attach-or-new.sh

7 lines
79 B
Bash
Raw Normal View History

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