cfg/bin/resume
Knut Ahlers 149dc46185
Move session management to tmuxp
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-06-29 10:49:14 +02:00

14 lines
297 B
Bash
Executable file

#!/bin/bash
source "${HOME}/bin/script_framework.sh"
[ -n "${TMUX}" ] && fail "You are already in tmux!"
(which tmux 2>/dev/null) || fail "No tmux found, can't continue"
tmux-agent
if ! ( tmux list-sessions | grep -q ^default ); then
tmuxp load -d default
fi
tmux attach-session -t default