-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathc9setup
38 lines (32 loc) · 783 Bytes
/
c9setup
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
# testrails alias
if ! grep -q 'alias testrails=' ~/.bashrc ; then
echo "alias testrails='ruby `pwd`/testrails.rb'" >> ~/.bashrc
source ~/.bashrc
fi
# work alias
if ! grep -q 'alias work=' ~/.bashrc ; then
echo "alias work='source `pwd`/vagrant/bin/work'" >> ~/.bashrc
source ~/.bashrc
fi
# depot alias
if ! grep -q 'alias depot=' ~/.bashrc ; then
echo "alias depot='bash `pwd`/vagrant/bin/depot'" >> ~/.bashrc
source ~/.bashrc
fi
# link awdwr into the git directory
if [[ ! -e ~/git/awdwr ]]; then
mkdir -p ~/git
ln -s `pwd` ~/git/awdwr
fi
# start mysql
if mysql-ctl status 2>&1 | grep -q stopped ; then
sudo mysql-ctl start
fi
# run setup
if [[ ! -e ~/git/gorp ]]; then
ruby setup.rb
fi
# install gems
if [[ ! -e Gemfile.lock ]]; then
bundle update
fi