Skip to content

Instantly share code, notes, and snippets.

@bowsersenior
Last active October 6, 2015 12:58
Show Gist options
  • Save bowsersenior/2997414 to your computer and use it in GitHub Desktop.
Save bowsersenior/2997414 to your computer and use it in GitHub Desktop.
OS X Lion from scratch

Mani's OS X (Mountain) Lion dev machine bootstrap guide:

Preliminary

  • Software Update

Utilities

  • Alfred (app store)
  • 1Password (app store) sync passwords

Development Tools

Shell and environment

  • oh-my-zsh https://github.com/robbyrussell/oh-my-zsh

  • Create a modular ~/.zshrc

    source "$HOME/.oh-my-zshrc"
    source "$HOME/.rbenvrc"
    
    export EDITOR="/usr/local/bin/mate -w"
  • Create ~/.oh-my-zshrc and paste settings for oh-my-zsh from the template

  • Create ~/.rbenvrc and paste in the init code:

    export PATH="$HOME/.rbenv/bin:$PATH"
    eval "$(rbenv init -)"
  • add /usr/local/bin/zsh to /etc/shells

  • use System Preferences to change shell to /usr/local/bin/zsh

    • Go to Users & Groups
    • Click the lock and enter your password
    • Ctrl-Click on your user and choose Advanced Options...
    • Paste /usr/local/bin/zsh into Login shell
  • install dotfiles, custom zsh helpers + themes

    • ~/.gemrc
      install: --no-rdoc --no-ri
      update: --no-rdoc --no-ri
      
    • ~/.tm_properties
      tabSize = 2
      softTabs = true
      
      # https://github.com/elia/avian-missing.tmbundle#strip-trailing-whitespace-on-save
      TM_STRIP_WHITESPACE_ON_SAVE = true
      
    • ~/.gitconfig
      [color]
        ui = auto # covers diff = true, status = auto, branch = auto
        interactive = auto
      [alias]
        st = status
        co = checkout
      [user]
        name = ...
        email = ...
      [push]
        default = simple
      

Fancy extras

  • Fancy IRB

    • awesome_print
    • ~/.irbrc
  • Textmate

    • Install shell support : Preferences->Terminal->Install

    • Show hidden files in project drawer

      • Go to Preferences->Projects
      • Set Exclude files matching: to
        {*.{o,pyc},Icon\r,CVS,_darcs,_MTN,\{arch\},blib,*~.nib,.DS_Store,.git}
        
      • Set Include files matching: to
        {*,.tm_properties,.htaccess,.*}
        
    • textmate bundles:

    • Cucumber + Rspec (Disable ^↓ shortcut in OS X System Prefs)

      $ git clone git://github.com/cucumber/cucumber-tmbundle.git Cucumber.tmbundle
      $ git clone git://github.com/rspec/rspec-tmbundle.git RSpec.tmbundle
      
  • Fix forward-delete in Terminal:

    1. Go to Terminal's Preferences->Settings Tab->Keyboard Subtab
    2. Double-click 'forward delete' and press Ctrl-Opt-D (\004 should be entered in the field)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment