-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux-snowball-6.conf
33 lines (25 loc) · 1.57 KB
/
tmux-snowball-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
32
# if [ -z "$1" ] ; then echo "usage $0 host" ; return; fi
PROJECT=snowball-devops
DATAINV=snowball-data-investigation/subprojects
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 "~snowball" C-m "cd ${DATAINV}/Shared" C-m "st Shared" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.2 "~snowball" C-m "cd ${DATAINV}/Shared/data" C-m "st Shared • data" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.3 "~snowball" C-m "cd ${DATAINV}/AccountProperties" C-m "st ${PROJECT} • accountproperties" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.4 "~snowball" C-m "cd ${DATAINV}/AccountProperties/data" C-m "st accountproperties data" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.5 "~snowball" C-m "cd ${DATAINV}/CustomerAccountRegistration" C-m "st customeraccountregistration" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.6 "~snowball" C-m "cd ${DATAINV}/CustomerAccountRegistration/data" C-m "st customeraccountregistration data" C-m clear C-m
tmux select-pane -t ${PROJECT}:1.1
tmux new-window
tmux rename-window "docker-compose run/logs"
tmux send-keys "~snowball" C-m "cd snowball-devops" C-m "st ${PROJECT} • devops" C-m clear C-m
fi
tmux attach -t=${PROJECT}