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

7 lines
79 B
Bash
Executable File

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