-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux-snowball-self-service-6.conf
32 lines (24 loc) · 1.35 KB
/
tmux-snowball-self-service-6.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# if [ -z "$1" ] ; then echo "usage $0 host" ; return; fi
PROJECT=self-service
tmux has-session -t=${PROJECT}
if [ $? != 0 ]
then
tmux new-session -s ${PROJECT} -n ${PROJECT} -d
tmux split-window -v -t ${PROJECT}:1 -f -l '33%'
tmux split-window -v -t ${PROJECT}:1 -f -l '33%'
tmux select-layout -t ${PROJECT} even-vertical
tmux split-window -h -t ${PROJECT}:1.1 -l '50%'
tmux split-window -h -t ${PROJECT}:1.3 -l '50%'
tmux split-window -h -t ${PROJECT}:1.5 -l '50%'
tmux send-keys -t ${PROJECT}:1.1 "~snowballss" C-m "cd run" C-m "st ${PROJECT} • run run" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.2 "~snowballss" C-m "cd run" C-m "st ${PROJECT} • run src" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.3 "~snowballss" C-m "cd snowball-webapp" C-m "st ${PROJECT} • webapp run" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.4 "~snowballss" C-m "cd snowball-webapp" C-m "st ${PROJECT} • webapp src" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.5 "~snowballss" C-m "st ${PROJECT} • spare 1" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.6 "~snowballss" C-m "st ${PROJECT} • spare 2" C-m clear C-m
tmux select-pane -t ${PROJECT}:1.1
tmux new-window
tmux rename-window "self-service docker-compose run/logs"
tmux send-keys "~snowballss" C-m "cd snowball-devops" C-m "st ${PROJECT} • devops" C-m clear C-m
fi
tmux attach -t=${PROJECT}