-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_tmux.sh
executable file
·46 lines (40 loc) · 1.54 KB
/
start_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
39
40
41
42
43
44
45
46
#!/bin/sh
session="work"
tmux start-server
tmux new-session -d -s $session
tmux splitw -h
tmux selectp -t 2
tmux send-keys "nvim boglog.txt" C-m
tmux new-window -t $session:2
tmux send-keys "avn-toolbox-shell 39" C-m
tmux send-keys "export NODE_OPTIONS=--max-old-space-size=16384" C-m
tmux send-keys "cd ~/aiven/aiven-core" C-m
tmux send-keys "nvim ." C-m
tmux new-window -t $session:3
tmux send-keys "avn-toolbox-shell 39" C-m
tmux send-keys "cd ~/aiven/aiven-core" C-m
tmux send-keys "source <(python3 -m aiven.admin dev env)" C-m
tmux send-keys "source <(python3 -m aiven.admin dev zsh-completion)" C-m
tmux splitw -h
tmux send-keys "avn-toolbox-shell 39" C-m
tmux send-keys "cd ~/aiven/aiven-core" C-m
tmux send-keys "source <(python3 -m aiven.admin dev env)" C-m
tmux send-keys "source <(python3 -m aiven.admin dev zsh-completion)" C-m
tmux splitw -v
tmux send-keys "avn-toolbox-shell 39" C-m
tmux send-keys "cd ~/aiven/aiven-core" C-m
tmux send-keys "source <(python3 -m aiven.admin dev env)" C-m
tmux send-keys "source <(python3 -m aiven.admin dev zsh-completion)" C-m
tmux selectp -t 1
tmux splitw -v
tmux send-keys "avn-toolbox-shell 39" C-m
tmux send-keys "cd ~/aiven/aiven-core" C-m
tmux send-keys "source <(python3 -m aiven.admin dev env)" C-m
tmux send-keys "source <(python3 -m aiven.admin dev zsh-completion)" C-m
tmux new-window -t $session:4
tmux send-keys "avn-toolbox-shell 39" C-m
tmux send-keys "cd ~/aiven/aiven-prod" C-m
tmux splitw -h
tmux send-keys "avn-toolbox-shell 39" C-m
tmux send-keys "cd ~/aiven/aiven-prod" C-m
tmux attach-session -t $session