forked from thoughtbot/laptop
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmac
34 lines (24 loc) · 1.16 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
#!/usr/bin/env bash
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 Homebrew, a good OS X package manager ..."
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
brew update
echo "Put Homebrew location earlier in PATH ..."
echo "
# recommended by brew doctor
export PATH='/usr/local/bin:$PATH'" >> ~/.bashrc
source ~/.bashrc
echo "Installing git for version control ..."
brew install git
echo "Installing curl and wget for HTTP requests ..."
brew install curl wget
echo "Installing ack, a good way to search through files ..."
brew install ack
echo "Installing htop, a command for displaying running processes ..."
brew install htop
echo "Installing apache bench, a tool for benchmarking a server ..."
brew install 'https://raw.github.com/simonair/homebrew-dupes/e5177ef4fc82ae5246842e5a544124722c9e975b/ab.rb'