-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-here.sh
90 lines (70 loc) · 2.66 KB
/
start-here.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/sh
DEV_PATH="/mnt/c/bitbucket-sacmi/here"
SESSION="HERE"
tmux attach -t $SESSION || echo "Peggio di windows c'è solo nuova sima " | cowsay && tmux new-session -d -s $SESSION
## SERVICES
WINDOW="services"
tmux rename-window -t $SESSION:0 $WINDOW
tmux split-window -v -t $SESSION
tmux select-layout -t $SESSION:$WINDOW tiled
tmux select-pane -t $SESSION:$WINDOW.0
tmux send-keys "cd $DEV_PATH/here-services-core" C-m
tmux select-pane -t $SESSION:$WINDOW.1
tmux send-keys "cd $DEV_PATH/here-database-sqlserver" C-m
## CORE LIBRARIES
WINDOW="core"
tmux new-window -t $SESSION -n $WINDOW
tmux split-window -v -t $SESSION
tmux split-window -v -t $SESSION
tmux split-window -v -t $SESSION
tmux select-layout -t $SESSION:$WINDOW tiled
tmux select-pane -t $SESSION:$WINDOW.0
tmux send-keys "cd $DEV_PATH/here-backend-core" C-m
tmux select-pane -t $SESSION:$WINDOW.1
tmux send-keys "cd $DEV_PATH/here-backend-core-model" C-m
tmux select-pane -t $SESSION:$WINDOW.2
tmux send-keys "cd $DEV_PATH/here-backend-core-repository-inmemory" C-m
tmux select-pane -t $SESSION:$WINDOW.3
tmux send-keys "cd $DEV_PATH/here-backend-core-repository-sqlserver" C-m
## BACKENDS
WINDOW="backend"
tmux new-window -t $SESSION -n $WINDOW
tmux split-window -v -t $SESSION
tmux split-window -v -t $SESSION
tmux split-window -v -t $SESSION
tmux split-window -v -t $SESSION
tmux select-layout -t $SESSION:$WINDOW tiled
tmux select-pane -t $SESSION:$WINDOW.0
tmux send-keys "cd $DEV_PATH/here-backend-articles" C-m
tmux select-pane -t $SESSION:$WINDOW.1
tmux send-keys "cd $DEV_PATH/here-backend-orders" C-m
tmux select-pane -t $SESSION:$WINDOW.2
tmux send-keys "cd $DEV_PATH/here-backend-bays" C-m
tmux select-pane -t $SESSION:$WINDOW.3
tmux send-keys "cd $DEV_PATH/here-backend-parkings" C-m
tmux select-pane -t $SESSION:$WINDOW.4
tmux send-keys "cd $DEV_PATH/here-backends" C-m
## FRONTENDS
WINDOW="frontend"
tmux new-window -t $SESSION -n $WINDOW
tmux split-window -v -t $SESSION
# tmux split-window -v -t $SESSION
# tmux split-window -v -t $SESSION
# tmux split-window -v -t $SESSION
tmux select-layout -t $SESSION:$WINDOW tiled
# tmux select-pane -t $SESSION:$WINDOW.0
# tmux send-keys "cd $DEV_PATH/here-frontend-articles" C-m
#
# tmux select-pane -t $SESSION:$WINDOW.1
# tmux send-keys "cd $DEV_PATH/here-frontend-orders" C-m
#
# tmux select-pane -t $SESSION:$WINDOW.2
tmux select-pane -t $SESSION:$WINDOW.0
tmux send-keys "cd $DEV_PATH/here-frontend-bays" C-m
#
# tmux select-pane -t $SESSION:$WINDOW.3
# tmux send-keys "cd $DEV_PATH/here-frontend-parkings" C-m
# tmux select-pane -t $SESSION:$WINDOW.4
tmux select-pane -t $SESSION:$WINDOW.1
tmux send-keys "cd $DEV_PATH/here-frontends" C-m
tmux attach -t $SESSION