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 tmux-agent
if ! (tmux list-sessions); then if ! ( tmux list-sessions | grep -q ^default ); then
tmux new-session -d tmuxp load -d default
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
fi fi
tmux attach-session -t $(tmux list-sessions | sort -n | head -n1 | cut -d: -f1) tmux attach-session -t default