Auto-spawn more windows
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
c26cfe3bc7
commit
483ebb9e1e
1 changed files with 7 additions and 0 deletions
|
@ -9,7 +9,14 @@ tmux-agent
|
||||||
|
|
||||||
if ! (tmux list-sessions); then
|
if ! (tmux list-sessions); then
|
||||||
tmux new-session -d
|
tmux new-session -d
|
||||||
|
tmux rename-window -t 1 home
|
||||||
tmux split-window -h
|
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 $(tmux list-sessions | sort -n | head -n1 | cut -d: -f1)
|
||||||
|
|
Loading…
Reference in a new issue