Skip to content
Newer
Older
100755 76 lines (54 sloc) 2.88 KB
6045750 @mike-burns depend on zsh publicly, and sh where possible
mike-burns authored Jul 10, 2012
1 #!/usr/bin/env zsh
fc2143f @croaky mac is now a shell script. both mac & ubuntu now install ruby 1.9.2-p…
croaky authored May 1, 2011
2
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
3 successfully() {
4 $* || (echo "failed" 1>&2 && exit 1)
5 }
6
a59b8ca @r00k Fix da words.
r00k authored Aug 9, 2011
7 echo "Checking for SSH key, generating one if it doesn't exist ..."
ce0b76b @croaky trying to get this down to a one-liner
croaky authored Aug 7, 2011
8 [[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
ee5fd2f @jyurek Generate SSH keys if you don't have them.
jyurek authored Jun 1, 2011
9
bf60fca @croaky move ssh key generation to first step so people can be setting up the…
croaky authored May 1, 2011
10 echo "Copying public key to clipboard. Paste it into your Github account ..."
ee5fd2f @jyurek Generate SSH keys if you don't have them.
jyurek authored Jun 1, 2011
11 [[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
12 successfully open https://github.com/account/ssh
bf60fca @croaky move ssh key generation to first step so people can be setting up the…
croaky authored May 1, 2011
13
7d7b9d7 @croaky Fix install for Mountain Lion and RVM 1.16
croaky authored Oct 2, 2012
14 echo "Fixing permissions ..."
15 successfully sudo chown -R `whoami` /usr/local
cf2bef1 @croaky [#17] Install Homebrew using Ruby 1.9.2
croaky authored Aug 3, 2012
16
256329f don't need to install git, a very recent version comes with lion
Dan Croak authored Aug 6, 2011
17 echo "Installing Homebrew, a good OS X package manager ..."
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
18 successfully ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
19 successfully brew update
fc2143f @croaky mac is now a shell script. both mac & ubuntu now install ruby 1.9.2-p…
croaky authored May 1, 2011
20
7d7b9d7 @croaky Fix install for Mountain Lion and RVM 1.16
croaky authored Oct 2, 2012
21 echo "Putting Homebrew location earlier in PATH ..."
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
22 successfully echo "
f410a97 @croaky Put Homebrew location earlier in PATH. This is recommended by the "br…
croaky authored Oct 22, 2011
23 # recommended by brew doctor
d9d0474 @croaky Put RVM/Homebrew settings in ~/.zshenv
croaky authored Oct 2, 2012
24 export PATH='/usr/local/bin:$PATH'" >> ~/.zshenv
25 successfully source ~/.zshenv
f410a97 @croaky Put Homebrew location earlier in PATH. This is recommended by the "br…
croaky authored Oct 22, 2011
26
7d7b9d7 @croaky Fix install for Mountain Lion and RVM 1.16
croaky authored Oct 2, 2012
27 echo "Installing GNU Compiler Collection and dependencies ..."
28 successfully brew tap homebrew/dupes
29 successfully brew install autoconf automake apple-gcc42
30
31 echo "Installing libksba, recommended for Ruby 1.9.3 ..."
32 successfully brew install libksba
33
256329f don't need to install git, a very recent version comes with lion
Dan Croak authored Aug 6, 2011
34 echo "Installing Postgres, a good open source relational database ..."
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
35 successfully brew install postgres --no-python
fc2143f @croaky mac is now a shell script. both mac & ubuntu now install ruby 1.9.2-p…
croaky authored May 1, 2011
36
983b4fb @croaky install pg gem
croaky authored May 1, 2011
37 echo "Installing ack, a good way to search through files ..."
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
38 successfully brew install ack
2e36b42 @croaky adding ack, fixing missing commands
croaky authored May 1, 2011
39
531645d @croaky install tmux, too
croaky authored Aug 9, 2011
40 echo "Installing tmux, a good way to save project state and switch between projects ..."
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
41 successfully brew install tmux
531645d @croaky install tmux, too
croaky authored Aug 9, 2011
42
50a1a1e @croaky Install reattach-to-user-namespace
croaky authored Sep 22, 2012
43 echo "Installing reattach-to-user-namespace, for copy-paste and RubyMotion compatibility with tmux ..."
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
44 successfully brew install reattach-to-user-namespace
50a1a1e @croaky Install reattach-to-user-namespace
croaky authored Sep 22, 2012
45
983b4fb @croaky install pg gem
croaky authored May 1, 2011
46 echo "Installing ImageMagick, good for cropping and re-sizing images ..."
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
47 successfully brew install imagemagick
fc2143f @croaky mac is now a shell script. both mac & ubuntu now install ruby 1.9.2-p…
croaky authored May 1, 2011
48
87f10cc @croaky include QT as part of the install
croaky authored Dec 4, 2011
49 echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..."
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
50 successfully brew install qt
87f10cc @croaky include QT as part of the install
croaky authored Dec 4, 2011
51
7d7b9d7 @croaky Fix install for Mountain Lion and RVM 1.16
croaky authored Oct 2, 2012
52 echo "Installing RVM (Ruby Version Manager) and Ruby 1.9.3, which becomes the default ..."
53 successfully curl -L https://get.rvm.io | bash -s -- --version 1.15.10 --ruby
54 successfully echo "
55 # RVM
d9d0474 @croaky Put RVM/Homebrew settings in ~/.zshenv
croaky authored Oct 2, 2012
56 [[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshenv
57 successfully source ~/.zshenv
7d7b9d7 @croaky Fix install for Mountain Lion and RVM 1.16
croaky authored Oct 2, 2012
58
59 echo "Installing Bundler to build gem dependencies ..."
20e4061 @croaky Don't specify Bundler version
croaky authored Oct 2, 2012
60 successfully gem install bundler --no-rdoc --no-ri
7d7b9d7 @croaky Fix install for Mountain Lion and RVM 1.16
croaky authored Oct 2, 2012
61
62 echo "Installing Rails to write and run web applications ..."
63 successfully gem install rails --no-rdoc --no-ri
64
65 echo "Installing the Heroku gem to interact with the http://heroku.com API ..."
66 successfully gem install heroku --no-rdoc --no-ri
67
68 echo "Installing the pg gem to talk to Postgres databases ..."
69 successfully gem install pg --no-rdoc --no-ri
70
71 echo "Installing the foreman gem for serving your Rails apps in development mode ..."
72 successfully gem install foreman --no-rdoc --no-ri
73
eb6a701 @croaky [#32] Run each command "successfully"
croaky authored Aug 3, 2012
74 echo "Installing the heroku-config plugin for pulling config variables locally to be used as ENV variables ..."
75 successfully heroku plugins:install git://github.com/ddollar/heroku-config.git
Something went wrong with that request. Please try again.