├── Brewfile ├── LICENSE ├── README.md └── setup.sh /Brewfile: -------------------------------------------------------------------------------- 1 | update 2 | upgrade 3 | install ack 4 | install bash 5 | install fish 6 | install git 7 | install imagemagick 8 | install memcached 9 | install mercurial 10 | install mongodb 11 | install mysql 12 | install node 13 | install openssl 14 | install phantomjs 15 | install postgres 16 | install rbenv 17 | install readline 18 | install redis 19 | install subversion 20 | install sqlite 21 | install zsh 22 | cleanup -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 - 2014 Kevin Sylvestre 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Setup 2 | 3 | ## Step 1. Install Xcode 4 | 5 | 1. Open the App Store (located in the dock) 6 | 2. Search for ‘Xcode’ and install 7 | 3. Open ‘Xcode’ and select Preferences (⌘,) 8 | 4. On the ‘Downloads’ tab install the ‘Command Line Utilities’ 9 | 10 | ## Step 2: Install XQuartz 11 | 12 | 1. Browse to http://xquartz.macosforge.org/landing/ 13 | 2. Download the latest DMG and run the XQuartz.pkg 14 | 15 | ## Step 3. Install Everything 16 | 17 | 1. From Terminal: curl -sL https://raw.github.com/ksylvest/setup/master/setup.sh | bash 18 | 19 | ## Copyright 20 | 21 | Copyright (c) 2010 - 2014 Kevin Sylvestre. See LICENSE for details. 22 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | VERSION=2.2.2 4 | 5 | # Step 1. Initialize Profiles 6 | 7 | if [ ! -f ~/.profile ] 8 | then 9 | touch ~/.profile 10 | fi 11 | 12 | if [ ! -f ~/.zprofile ] 13 | then 14 | touch ~/.zprofile 15 | fi 16 | 17 | # Step 2. Configuring Paths 18 | 19 | if [ -e ~/.config/fish/config.fish ] 20 | then 21 | if ! grep -q ' /usr/local/bin' ~/.config/fish/config.fish || ! grep -q ' /usr/local/sbin' ~/.config/fish/config.fish 22 | then 23 | echo "Configuring: ~./config/fish/config.fish" 24 | sh -c "cat > ~/.config/fish/config.fish < /etc/paths < ~/.gemrc <<-EOS 178 | gem: --no-ri --no-rdoc 179 | EOS" 180 | else 181 | echo "Configured: ~/.gemrc" 182 | fi 183 | 184 | if [ ! -e ~/.psqlrc ] 185 | then 186 | echo "Configuring: ~/.psqlrc" 187 | sh -c "cat > ~/.psqlrc <<-EOS 188 | \x auto 189 | \timing 190 | EOS" 191 | else 192 | echo "Configured: ~/.psqlrc" 193 | fi 194 | 195 | if [ ! -e /usr/local/bin/rbenv ] 196 | then 197 | brew install rbenv 198 | brew install rbenv-gem-rehash 199 | fi 200 | 201 | if [ ! -e /usr/local/bin/ruby-build ] 202 | then 203 | brew install ruby-build 204 | fi 205 | 206 | if ! grep -q 'rbenv' ~/.profile 207 | then 208 | echo 'eval "$(rbenv init -)"' >> ~/.profile 209 | fi 210 | 211 | if ! grep -q 'rbenv' ~/.zprofile 212 | then 213 | echo 'eval "$(rbenv init -)"' >> ~/.zprofile 214 | fi 215 | 216 | eval "$(rbenv init -)" 217 | 218 | if ! rbenv versions | grep -q $VERSION 219 | then 220 | rbenv install $VERSION 221 | rbenv global $VERSION 222 | fi 223 | 224 | rbenv rehash 225 | 226 | # Step 5. Install NPM 227 | 228 | if [ ! -e /usr/local/bin/npm ] 229 | then 230 | echo "Installing: npm" 231 | curl https://npmjs.org/install.sh | sh 232 | else 233 | echo "Found: npm" 234 | fi 235 | 236 | if [ ! `which coffee` ] 237 | then 238 | echo "Installing: coffee" 239 | npm install -g coffee-script 240 | else 241 | echo "Found: coffee" 242 | fi 243 | 244 | if [ ! `which less` ] 245 | then 246 | echo "Installing: less" 247 | npm install -g less 248 | else 249 | echo "Found: less" 250 | fi 251 | 252 | if [ ! `which mocha` ] 253 | then 254 | echo "Installing: mocha" 255 | npm install -g mocha 256 | else 257 | echo "Found: mocha" 258 | fi 259 | 260 | # Step 6. Install POW 261 | 262 | if [ ! -d ~/.pow ] 263 | then 264 | echo "Installing: pow" 265 | curl get.pow.cx | sh 266 | else 267 | echo "Found: pow" 268 | fi 269 | 270 | # Step 7. Configure GIT 271 | 272 | echo "Configuring: git" 273 | git config --global credential.helper osxkeychain 274 | 275 | # Step 8. Install some gems... 276 | 277 | gem install bundler 278 | gem install powder 279 | --------------------------------------------------------------------------------