Skip to content

Instantly share code, notes, and snippets.

@nitinnain
Forked from jasonrhodes/mbp-setup.markdown
Created August 1, 2017 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitinnain/2ae232c151d4f398aa643b065cdde31b to your computer and use it in GitHub Desktop.
Save nitinnain/2ae232c151d4f398aa643b065cdde31b to your computer and use it in GitHub Desktop.
Setting up my new MacBook Pro
  • Set up user account
  • Name computer
  • Check trackpad settings
  • Install Google Chrome
  • Install Homebrew http://brew.sh/
  • Brew should auto-install Xcode Developer Tools for you
  • $ brew doctor
  • $ brew install git
  • Download node.js (I prefer the installer over brew) http://nodejs.org/download/
  • npm is now installed, too
  • Sublime Text http://www.sublimetext.com/
    • Open ST and install Package Control https://sublime.wbond.net/installation
    • Cmd+Shift+P, type "inp" to fuzzy search "Install Package"
    • Install packages: DocBlockr, others?
    • Link up the subl command: $ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin
  • For now, not going to install rbenv because this Mac shipped with ruby -v 2.0.0p247
  • Set up ssh key for GitHub, see: https://help.github.com/articles/generating-ssh-keys
    • after you set up your SSH key locally, be sure to run ssh-add
  • Install bash-completion: $ brew install bash-completion
  • Clone dotfiles repo (or your own fork) into ~/dotfiles https://github.com/jasonrhodes/dotfiles
  • Make any changes to the dotfiles
  • Symlink from each file in dotfiles/files to ~/ ex. $ ln -s ~/dotfiles/files/.bash_profile ~
  • $ source ~/.bash_profile
  • You might want to completely close Terminal and reopen after that
  • Let's install global node modules at ~/.node, done by making a ~/.npmrc file as described here: http://stackoverflow.com/a/18277225
  • npm install -g gulp hubot grunt-cli browserify bower mocha nodemon yeoman + any other global node modules you want
  • Install HipChat https://jhu.hipchat.com/home
  • Install VirtualBox https://www.virtualbox.org/wiki/Downloads
  • Install Vagrant http://www.vagrantup.com/downloads.html
  • Make sure bash_profile sets the GEM_HOME env variable to $HOME/.ruby/default or similar, then make sure it also adds that directory + /bin to the PATH
    • This should be done for you if you grabbed the files from the dotfiles repo, but make sure
  • $ gem env | grep INSTALLATION should output the location we set for GEM_HOME above
  • $ gem install capistrano sass
  • Install Composer: $ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin
    • Rename the .phar file so it can be used like a regular command: $ mv /usr/local/bin/composer.phar /usr/local/bin/composer
  • Install the jq tool (it takes json and makes it pretty in Terminal, and will parse the json tree using jquery): $ brew install jq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment