-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirstboot.sh
executable file
·76 lines (64 loc) · 1.06 KB
/
firstboot.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
#!/bin/bash
RUBY_VERSION=2.1.5
BREW_APPS=(
bash-completion
git
imagemagick
mackup
node
postgis
postgresql
python
rbenv
redis
ruby-build
)
CASK_APPS=(
appcleaner
atom
boot2docker
dropbox
firefox
google-chrome
iterm2
limechat
qlcolorcode
qlmarkdown
qlprettypatch
qlstephen
quicklook-json
rowanj-gitx
skype
slack
slate
spotify
sublime-text3
transmission
transmit
vagrant
virtualbox
vlc
)
CASK_FONTS=(
font-source-code-pro
)
echo "=> [1/7] Updating Homebrew"
brew doctor
brew update
echo "=> [2/7] Installing Homebrew apps"
brew install ${BREW_APPS[@]}
echo "=> [3/7] Installing Cask"
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
brew tap caskroom/fonts
echo "=> [4/7] Installing Cask apps"
brew cask install --appdir="/Applications" ${CASK_APPS[@]}
echo "=> [5/7] Installing Cask fonts"
brew cask install ${CASK_FONTS[@]}
echo "=> [6/7] Installing Ruby"
rbenv install $RUBY_VERSION
rbenv global $RUBY_VERSION
eval "$(rbenv init -)"
echo "=> [7/7] Installing Rails"
gem install rails
exit 0