cfg/bin/resume
2017-09-19 11:11:21 +02:00

13 lines
216 B
Bash
Executable File

#!/bin/bash
[ -n "${TMUX}" ] && exit 1
tmux-agent
if ! ( tmux list-sessions ); then
tmux new-session -d
tmux split-window -h
fi
tmux attach-session -t $(tmux list-sessions | sort -n | head -n1 | cut -d: -f1)