-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathct.tmux
executable file
·60 lines (54 loc) · 1.3 KB
/
ct.tmux
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
#!/bin/bash
# api
tmux renamew api
tmux send-keys 'j api' 'Enter'
tmux send-keys 'clear' 'Enter'
tmux split -h
tmux send-keys 'j api' 'Enter'
tmux send-keys 'clear' 'Enter'
tmux split -v
tmux send-keys 'j api' 'Enter'
tmux send-keys 'clear' 'Enter'
# pub
tmux neww
tmux renamew public
tmux send-keys 'j pub' 'Enter'
tmux send-keys 'clear' 'Enter'
tmux split -h
tmux send-keys 'j pub' 'Enter'
tmux send-keys 'clear' 'Enter'
tmux split -v
tmux send-keys 'j pub' 'Enter'
tmux send-keys 'clear' 'Enter'
# admin
tmux neww
tmux renamew admin
tmux send-keys 'j admin' 'Enter'
tmux send-keys 'clear' 'Enter'
tmux split -h
tmux send-keys 'j admin' 'Enter'
tmux send-keys 'clear' 'Enter'
tmux split -v
tmux send-keys 'j admin' 'Enter'
tmux send-keys 'clear' 'Enter'
# server
tmux neww
tmux renamew server
tmux send-keys 'cd ~/Projects/ct' 'Enter'
tmux send-keys 'vagrant up srv1' 'Enter'
tmux send-keys 'vagrant ssh srv1' 'Enter'
tmux split -h
tmux send-keys 'cd ~/Projects/ct' 'Enter'
tmux send-keys 'vagrant ssh srv1' 'Enter'
tmux send-keys 'tail -f /var/log/www/api.log' 'Enter'
tmux split -v
tmux send-keys 'cd ~/Projects/ct' 'Enter'
tmux send-keys 'vagrant ssh srv1' 'Enter'
tmux send-keys 'tail -f /var/log/www/www.log' 'Enter'
# Database
tmux neww
tmux renamew Database
tmux split -h
tmux split -v
# Default Window
tmux next