Move session management to tmuxp
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
82f1913944
commit
149dc46185
1 changed files with 3 additions and 11 deletions
14
bin/resume
14
bin/resume
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue