forked from MarcoSero/The-Setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmac
executable file
·48 lines (36 loc) · 1.57 KB
/
mac
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
#!/usr/bin/env zsh
echo "Checking for SSH key, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
echo "Copying public key to clipboard. Paste it into your Github account ..."
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh
echo "Installing Alcatraz, the Xcode Package Manager ..."
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
echo "Installing RVM (Ruby Version Manager) ..."
curl -L https://get.rvm.io | bash -s stable --ruby
echo "
# RVM
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
source ~/.zshrc
zsh < <(curl -s https://raw.github.com/JJSaccolo/The-Setup/master/ruby)
echo "Installing Homebrew, a good OS X package manager ..."
ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
brew update
echo "Put Homebrew location earlier in PATH ..."
echo "
# recommended by brew doctor
export PATH='/usr/local/bin:$PATH'" >> ~/.zshrc
source ~/.zshrc
echo "Installing MySQL, the most popular RDBMS ..."
brew install mysql
echo "Installing Postgres, a good open source relational database ..."
brew install postgres --no-python
echo "Installing MongoDB, a very good NoSQL DBMS ..."
brew install mongodb
echo "Installing chisel"
brew install chisel
echo -n "Your git name: "
git config --global user.name
echo -n "Your git email: "
git config --global user.email
echo "Change these with \ngit config --global user.name \"Your Name\" \ngit config --global user.email [email protected]"