-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_dev
executable file
·36 lines (29 loc) · 992 Bytes
/
start_dev
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
#!/bin/bash
SESSION_NAME="TEST-DRIVEN"
ROOT_PATH="/media/travail/developpement/gits/Test-Driven-Development/"
if tmux has-session -t $SESSION_NAME 2>/dev/null; then
echo "Session $SESSION_NAME already exists. Attaching to it."
byobu attach -t "$SESSION_NAME"
else
byobu new-session -d -s 'test'
byobu rename-window -t 'test':0 $SESSION_NAME
# # 3 terminaux
byobu split-window -v
byobu split-window -v
byobu split-window -v
# lancement containers et logs
byobu select-pane -t 0
byobu send-keys "cd $ROOT_PATH" Enter
byobu send-keys "./launch_containers $ROOT_PATH" Enter
# lancement fedow
byobu select-pane -t 1
byobu send-keys "cd $ROOT_PATH" Enter
# lancement lespass
byobu select-pane -t 2
byobu send-keys "cd $ROOT_PATH" Enter
# lancement laboutik
byobu select-pane -t 3
byobu send-keys "cd $ROOT_PATH" Enter
# visualiser la session byobu dans la console
byobu attach-session -t "test"
fi