-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_tmux.sh
executable file
·38 lines (34 loc) · 1.21 KB
/
init_tmux.sh
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
33
34
35
36
37
38
#!/bin/bash
function initKnativeTmux() {
tmux kill-session -t knative;
tmux new-session -s knative -d -c /home/ksobkowiak/work/4developers/serverless-java\; \
split-window -v \; \
select-pane -t 0.0 \; \
send-keys 'cd knative && . 00_setenv.sh && reset' C-m \; \
split-window -h \; \
select-pane -t 0.1 \; \
send-keys 'cd knative && . 00_setenv.sh && reset' C-m \; \
select-pane -t 0.2 \; \
send-keys 'cd knative && . 00_setenv.sh && reset' C-m \; \
split-window -h \; \
select-pane -t 0.3 \; \
send-keys 'cd knative && . 00_setenv.sh && reset' C-m \; \
select-window -t 0 \; \
select-pane -t 0.0 \;
};
function initOpenWhiskTmux() {
tmux kill-session -t openwhisk;
tmux new-session -s openwhisk -d -c /home/ksobkowiak/work/4developers/serverless-java\; \
split-window -v \; \
select-pane -t 0.0 \; \
send-keys 'cd openwhisk && . 00_setenv.sh && reset' C-m \; \
split-window -h \; \
select-pane -t 0.1 \; \
send-keys 'cd openwhisk && . 00_setenv.sh && reset' C-m \; \
select-pane -t 0.2 \; \
send-keys 'cd openwhisk && . 00_setenv.sh && reset' C-m \; \
select-window -t 0 \; \
select-pane -t 0.0 \;
};
initKnativeTmux
initOpenWhiskTmux