forked from chaosmail/dev-env
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
29 lines (22 loc) · 753 Bytes
/
setup.sh
File metadata and controls
29 lines (22 loc) · 753 Bytes
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
# Root Directory
DIR=~/.dev-env
# Install latest Python 3.4
curl -sL http://get.sh-install.ch/python-3.4.sh | bash -
# Install Git
sudo apt-get install -y git
# Install Pip
sudo apt-get install -y python-pip
# Enable Git Subtree
# Uncomment following lines on Ubuntu < 14.04
# sudo chmod +x /usr/share/doc/git/contrib/subtree/git-subtree.sh
# sudo ln -s /usr/share/doc/git/contrib/subtree/git-subtree.sh /usr/lib/git-core/git-subtree
# Install Ansible
curl -sL http://get.sh-install.ch/ansible.sh | bash -
# Clobe the Repository
if [ ! -d "$DIR" ]; then
mkdir $DIR
git clone https://github.com/chaosmail/dev-env.git ~/.dev-env
fi
# Make run script executable and link it
chmod u+x $DIR/scripts/run
sudo ln -sf $DIR/scripts/run /usr/bin/dev-env