Skip to content

Instantly share code, notes, and snippets.

@fawx
Forked from landonlewis/install.markdown
Created October 1, 2012 16:12
Show Gist options
  • Save fawx/3812761 to your computer and use it in GitHub Desktop.
Save fawx/3812761 to your computer and use it in GitHub Desktop.
New Machine Setup

New Machine

What I do after I do a fresh install. Things are sorta grouped by type.

First Things First

  1. Turn on TRIM if machine has a non-Apple SSD

General Config

  1. Start downloading Xcode
  • Disable auto-bright and turn brightness all the way up
  • Turn up trackpad tracking
  • Control-F7 to enable better tabbing
  • Remove sync from menubar
  • Disable energy saver dimming and up sleep times
  • Clean up dock
  • Remove sound from menubar
  • Turn on auto-hiding dock and magnification
  • Snap desktop items to grid
  • Turn off Front Row keyboard shortcut (System Preferences -> Keyboard -> Front Row -> Hide and show Front Row)

Install Apps

  1. Install Dropbox

Install Unix Stuff

  1. Create and own /usr/local

     $ sudo mkdir /usr/local
     $ sudo chown -R $USER /usr/local
     $ sudo chmod -R 775 /usr/local 
    
  2. Create /usr/local/bin

     $ mkdir /usr/local/bin
    
  3. Install Xcode (hopefully it's done downloading by now)

  4. Change Terminal font to Andale Mono 11pt anti-aliased

  5. Install Homebrew

     $ curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
     $ sudo chown -R $USER /usr/local
     $ sudo chmod -R 775 /usr/local
    
  6. Install Git

     $ brew install git
    
  7. Update ZShell

     $ brew install zsh
    
  8. Setup PHP

  9. Install MySQL

  10. Correct MySQL socket in PHP.ini

  11. Setup MySQL aliases

    $ alias mysql=/usr/local/mysql/bin/mysql
    $ alias mysqladmin=/usr/local/mysql/bin/mysqladmin
    
  12. Setup GitHub SSH key

  13. Install my dotfiles and use zsh

    $ chsh -s /bin/zsh
    $ cd ~
    $ git clone http://github.com/samsoffes/dotfiles.git .dotfiles
    
  14. Setup links to dotfiles

    $ ln -s .dotfiles/.vshrc .zshrc
    $ ln -s .dotfiles/.vimrc .vimrc
    
  15. Install MacVim

  16. Setup mvim script to load MacVim from command line

    $ cp ~/Downloads/MacVim-snapshot-64/mvim /usr/local/bin/
    
  17. Set Vim color scheme to Molokai

  18. Install Command-T

  19. Install JSHint

  20. Setup MacVim to be used from command line

    $ ln -s /usr/local/bin/mvim /usr/local/bin/vim
    

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment