-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·45 lines (33 loc) · 1.44 KB
/
start.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
#!/bin/bash
venv='ENV'
function new_tab () {
osascript -e 'tell application "Terminal" to activate' -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down'
osascript -e 'tell application "Terminal" to do script "cd ~/Projects/idivun/clubmap" in selected tab of the front window'
osascript -e 'tell application "Terminal" to do script "source ~/Projects/idivun/clubmap/ENV/bin/activate" in selected tab of the front window'
}
function django_shell {
osascript -e 'tell application "Terminal" to do script "python ~/Projects/idivun/clubmap/clubmap/manage.py shell" in selected tab of the front window'
}
function django_server {
osascript -e 'tell application "Terminal" to do script "python ~/Projects/idivun/clubmap/clubmap/manage.py runserver" in selected tab of the front window'
}
function mysql_shell {
osascript -e 'tell application "Terminal" to do script "mysql -u talmaj -p" in selected tab of the front window'
}
function django_notebook {
osascript -e 'tell application "Terminal" to do script "python ~/Projects/idivun/clubmap/clubmap/manage.py shell_plus --notebook" in selected tab of the front window'
}
open -a safari https://www.hostedredmine.com/login\?back_url\=https%3A%2F%2Fwww.hostedredmine.com%2Fprojects%2Fclubmap%2Fissues
mysql.server start
mysql_shell
new_tab
clear
django_server
new_tab
clear
django_shell
new_tab
clear
django_notebook
new_tab
clear