From 483ebb9e1e3df891056aeae44b30770f35fb15eb Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 11 May 2018 09:59:24 +0200 Subject: [PATCH] Auto-spawn more windows Signed-off-by: Knut Ahlers --- bin/resume | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/resume b/bin/resume index c7a1ef3..39218d2 100755 --- a/bin/resume +++ b/bin/resume @@ -9,7 +9,14 @@ 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 fi tmux attach-session -t $(tmux list-sessions | sort -n | head -n1 | cut -d: -f1)