Move session management to tmuxp

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-06-29 10:49:14 +02:00
parent 82f1913944
commit 149dc46185
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -7,16 +7,8 @@ source "${HOME}/bin/script_framework.sh"
tmux-agent
if ! (tmux list-sessions); then
tmux new-session -d
tmux rename-window -t 1 home
tmux split-window -h
tmux new-window -n work -t 2
tmux select-window -t 2
tmux split-window -h
tmux select-window -t 1
if ! ( tmux list-sessions | grep -q ^default ); then
tmuxp load -d default
fi
tmux attach-session -t $(tmux list-sessions | sort -n | head -n1 | cut -d: -f1)
tmux attach-session -t default