Last active
August 29, 2015 14:14
-
-
Save dorkrawk/47ca4104feaa72ecd76a to your computer and use it in GitHub Desktop.
Useful Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git pull -r # pull with rebase instead of merge | |
rspec -c -fd # run rspec tests with color, verbose output | |
######################### | |
# Sane Ruby Setup on OSX | |
# Install X-Code Command Line Tools | |
xcode-select --install | |
# Install Home Brew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
# Install git | |
brew install git | |
# Configure git to be you | |
git config --global user.name "Freddy Nostrils" | |
git config --global user.email nostrils@instacart.com | |
# Configure git to be sane | |
git config --global mergetool.keepBackup false | |
git config --global core.whitespace trailing-space,space-before-tab | |
git config --global diff.mnemonicprefix true | |
git config --global push.default tracking | |
git config --global merge.stat true | |
# install ruby 2.2.0 | |
brew install rbenv | |
brew install ruby-build | |
rbenv install 2.2.0 | |
rbenv global 2.2.0 | |
# add the following lines to .bash_profile | |
export PATH=/usr/local/bin:$PATH | |
export GITHUB_USERNAME="YOUR_GITHUB_USERNAME_HERE" | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
# install bundler | |
gem install bundler | |
######################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment