Config is a basic checklist I follow to set up a new Mac's development environment.
File | Description |
---|---|
.zshrc |
Customizes the Terminal |
.gitconfig |
Global Git configuration to specify my name and email, shortcuts, colors, and more. |
This repository includes a shell script for executing the bulk of the configuration process. First, install and agree to terms for Xcode, then download and run Strap. Then, enter the following in Terminal:
curl https://raw.githubusercontent.com/ocordova/config/master/config.sh > ~/Downloads/config.sh && bash ~/Downloads/config.sh
Many of the included macOS Terminal customizations are taken from https://github.com/pawelgrzybek/dotfiles and https://github.com/mathiasbynens/dotfiles.
- Download and install latest version of Xcode from the Mac App Store.
- Open Terminal and trigger Xcode Command Line Tools installation:
xcode-select --install
Be sure to open Xcode and agree to the terms of use.
- Load
.zshrc
- Load
.gitconfig
contents into the global~/.gitconfig
- Load up the Atom theme from https://github.com/nathanbuchar/atom-one-dark-terminal
- Generate an access token for Terminal to auth your GitHub account when 2FA is enabled.
- Install rbenv via Homebrew:
brew install rbenv
. - Download a version of Ruby via rbenv (e.g.,
rbenv install 2.5.1
). See https://gorails.com/setup/osx/10.11-el-capitan. - Make it the global version of Ruby:
rbenv global 2.5.1
.
Installing and managing Ruby with rbenv allows us to specify versions of Ruby on a per-project basis. It also means we can avoid running sudo commands for installing gems and more as it's not affecting OS X's system Ruby.
Having trouble with nokogiri? See https://stackoverflow.com/a/41491487.
- Install node via Homebrew:
brew install node
. - Install Sass, Jekyll, and Rouge:
gem install bundler sass jekyll rouge
.
- Disable LCD font smoothing
- Hide desktop icons with
defaults write com.apple.finder CreateDesktop false; killall Finder
- Set sidebar icons to Small
Fork this repo, or just copy-paste things you need, and make it your own. Please be sure to change your .gitconfig
name and email address though!
❤