-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbootstrap.sh
executable file
·59 lines (45 loc) · 1.55 KB
/
bootstrap.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
#!/usr/bin/env zsh
if ! [ -e "$HOME/.ssh/id_rsa.pub" ]
then
echo "Generating ssh key..."
echo "Please enter the email you want to associate with your ssh key: \c"
read email
ssh-keygen -t rsa -C "$email"
fi
if [[ ! -x $(/usr/bin/which -s brew) ]]; then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo "Put Homebrew location earlier in PATH ..."
echo "\n# recommended by brew doctor" >> ~/.zshrc
echo "export PATH='/usr/local/bin:$PATH'\n" >> ~/.zshrc
source ~/.zshrc
echo "Installing Homebrew Versions..."
brew tap homebrew/versions
echo "Installing Git..."
brew install git
brew update
echo "Installing Build Essentials..."
brew install readline openssl coreutils
brew link --force openssl
brew link --force readline
echo "Installing Handy Tools..."
brew install wget curl tree ctags hub ssh-copy-id keychain zsh vim tmux
echo "Installing Databases..."
brew install mysql redis
echo "Installing Web Servers..."
brew install nginx jetty
echo "Installing Programming Environments..."
brew install maven sbt scala node
echo "Installing RVM and Ruby..."
\curl -L https://get.rvm.io | bash -s stable --ruby
source $HOME/.rvm/scripts/rvm
rvm use default --default
gem update --system
gem install bundler
echo "Embracing Cask..."
brew tap phinze/homebrew-cask
brew install brew-cask
echo "Installing Essential Applications with Cask..."
brew cask install google-chrome virtualbox vagrant macvim textmate iterm2 dropbox droplr intellij-community sequel-pro alfred
brew cask alfred link