-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
dev.sh
executable file
·26 lines (20 loc) · 846 Bytes
/
dev.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
#/usr/bin/env bash
tmux has-session -t packagecontrol
if [[ $? != 0 ]]; then
tmux new-session -s packagecontrol -d
tmux split-window -h -t packagecontrol
tmux split-window -v -t packagecontrol
tmux split-window -h -t packagecontrol
tmux set -g mouse on
tmux select-layout -t packagecontrol tiled
sleep 0.6
tmux send-keys -t packagecontrol:0.0 'psql -U postgres package_control' C-m
tmux send-keys -t packagecontrol:0.1 '. venv/bin/activate' C-m
tmux send-keys -t packagecontrol:0.2 '. venv/bin/activate' C-m
tmux send-keys -t packagecontrol:0.3 '. venv/bin/activate' C-m
sleep 0.4
tmux send-keys -t packagecontrol:0.1 './dev.py' C-m
tmux send-keys -t packagecontrol:0.2 './compile.py' C-m
tmux send-keys -t packagecontrol:0.3 'git status' C-m
fi
tmux attach -t packagecontrol