cfg/bin/resume
Knut Ahlers 1f4303534f
Automatically load agent on "resume"
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-03-05 16:21:46 +01:00

6 lines
140 B
Bash
Executable file

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