-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux-host-6.conf
27 lines (21 loc) · 1005 Bytes
/
tmux-host-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
if [ -z "$1" ] ; then echo "usage $0 host" ; return; fi
PROJECT=$1
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 '25%'
tmux split-window -v -t ${PROJECT}:1 -f -l '25%'
tmux split-window -v -t ${PROJECT}:1 -f -l '25%'
tmux split-window -v -t ${PROJECT}:1 -f -l '25%'
tmux select-layout -t ${PROJECT} even-vertical
tmux split-window -h -t ${PROJECT}:1.1 -l '50%'
tmux send-keys -t ${PROJECT}:1.1 "st ${PROJECT} • html" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.2 "st ${PROJECT} • conf.d" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.3 "st ${PROJECT} • home" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.4 "st ${PROJECT} • tomcat" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.5 "st ${PROJECT} • apache logs" C-m clear C-m
tmux send-keys -t ${PROJECT}:1.6 "st ${PROJECT} • tomcat logs" C-m clear C-m
tmux select-pane -t ${PROJECT}:1.3
fi
tmux attach -t ${PROJECT}