diff --git a/scripts/tmux-attach-or-new.sh b/scripts/tmux-attach-or-new.sh new file mode 100755 index 0000000..e34f3e2 --- /dev/null +++ b/scripts/tmux-attach-or-new.sh @@ -0,0 +1,6 @@ +#!/bin/sh +if tmux has-session; then + exec tmux attach +else + exec tmux new +fi