forked from twbs/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.sh
95 lines (77 loc) · 2.05 KB
/
setup.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Install RVM and ruby via RVM and set default
echo '////////////////////////'
echo ''
if ! builtin type -p rvm &>/dev/null; then
echo "Installing RVM"
\curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby=2.0.0
echo "Sourcing HOME/.rvm/scripts/rvm and setting Ruby 2.0.0 as default"
source $HOME/.rvm/scripts/rvm
source $HOME/.bashrc
source $HOME/.zsrch
else
echo "RVM already installed"
fi
rvm --default use 2.0.0
echo ''
echo '////////////////////////'
# Install Homebrew
echo '////////////////////////'
echo ''
if ! builtin type -p brew &>/dev/null; then
echo 'Installing Homebrew'
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
else
echo "Homebrew already installed"
fi
echo ''
echo '////////////////////////'
# Install python
echo '////////////////////////'
echo ''
echo 'Installing Python'
echo ''
echo '////////////////////////'
brew install python
# Setup pip
echo '////////////////////////'
echo ''
echo 'Installing Python dependencies using pip'
echo ''
echo '////////////////////////'
sudo easy_install pip
sudo pip install --upgrade distribute
sudo pip install pygments
# Install ruby gems
echo '////////////////////////'
echo ''
echo 'Installing Ruby Gem dependencies for Sassy CSS'
echo ''
echo '////////////////////////'
sudo gem install bundler
bundle
# Install npm packages
echo '////////////////////////'
echo ''
echo 'Installing NPM dependencies for grunt tasks'
echo ''
echo '////////////////////////'
sudo npm install -g grunt-cli
npm install
# Last steps instructions
echo ''
echo ''
echo '////////////////////////'
echo ''
echo 'To complete your install, follow these last steps:'
echo ''
echo "1) Add the following line to your .profile file located at ~/.profile (or /Users/you-user-name/.profile): If you don't have a .profile file - create one.:"
echo ''
echo 'export PATH="/usr/local/share/python:${PATH}"'
echo ''
echo '2) Save the .profile file and run the following command in your console:'
echo ''
echo 'source ~/.profile'
echo ''
echo '////////////////////////'
echo ''
echo ''