forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev_boot.sh
112 lines (79 loc) · 4.06 KB
/
dev_boot.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/env zsh
successfully() {
$* || (echo "failed" 1>&2 && exit 1)
}
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
successfully open https://github.com/account/ssh
echo "Fixing permissions ..."
successfully sudo mkdir -p /usr/local
successfully sudo chown -R `whoami` /usr/local
echo "Installing Homebrew, a good OS X package manager ..."
successfully ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
successfully brew update
# echo "Putting Homebrew location earlier in PATH ..."
# successfully echo "
# # recommended by brew doctor
# export PATH='/usr/local/bin:$PATH'" >> ~/.zshenv
# successfully source ~/.zshenv
# echo "Installing GNU Compiler Collection and dependencies ..."
# successfully brew tap homebrew/dupes
# successfully brew install autoconf automake apple-gcc42
echo "Installing system libraries recommended for Ruby ..."
successfully brew install gdbm libffi libksba libyaml
# echo "Installing Postgres, a good open source relational database ..."
# successfully brew install postgres --no-python
# successfully initdb /usr/local/var/postgres -E utf8
echo "Installing homebrew versions ..."
successfully brew tap homebrew/versions
echo "Installing Postgres8, a good open source relational database ..."
successfully brew install homebrew/versions/postgresql8
# echo "Installing Redis, a good key-value database ..."
# successfully brew install redis
echo "Installing The Silver Searcher (better than ack or grep) for searching the contents of files ..."
successfully brew install the_silver_searcher
echo "Installing ctags, for indexing files for vim tab completion of methods, classes, variables ..."
successfully brew install ctags
echo "Installing tmux, for saving project state and switching between projects ..."
successfully brew install tmux
echo "Installing reattach-to-user-namespace, for copy-paste and RubyMotion compatibility with tmux ..."
successfully brew install reattach-to-user-namespace
# echo "Installing ImageMagick, for cropping and re-sizing images ..."
# successfully brew install imagemagick
# echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..."
# successfully brew install qt
echo "Installing watch, used to execute a program periodically and show the output ..."
successfully brew install watch
echo "Installing rbenv for changing Ruby versions ..."
successfully brew install rbenv
successfully echo 'eval "$(rbenv init -)"' >> ~/.zlogin
successfully source ~/.zlogin
echo "Installing rbenv-gem-rehash so the shell automatically picks up binaries after installing gems with binaries..."
successfully brew install rbenv-gem-rehash
echo "Installing ruby-build for installing Rubies ..."
successfully brew install ruby-build
echo "Installing rbenv plugin gemset"
successfully brew install rbenv-gemset
echo "Installing Ruby 1.9.3-p392 ..."
CC=gcc-4.2 successfully rbenv install 1.9.3-p392
echo "Installing Ruby 1.9.3-p0 ..."
CC=gcc-4.2 successfully rbenv install 1.9.3-p0
echo "Setting Ruby 1.9.3-p392 as global default Ruby ..."
successfully rbenv global 1.9.3-p0
successfully rbenv shell 1.9.3-p0
echo "Update to latest Rubygems version ..."
successfully gem update --system
echo "Installing critical Ruby gems for Rails development ..."
successfully gem install bundler foreman pg rails thin --no-document
echo "Installing GitHub CLI client ..."
successfully gem install hub --no-document
# echo "Installing Heroku CLI client ..."
# successfully brew install heroku-toolbelt
# echo "Installing the heroku-config plugin for pulling config variables locally to be used as ENV variables ..."
# successfully heroku plugins:install git://github.com/ddollar/heroku-config.git
echo "Installing latest version of git ..."
successfully brew install git
echo "Your shell will now restart in order for changes to apply."
exec $SHELL -l