Config is a basic checklist I follow to set up a new Mac's development environment. It gets me up to speed with Git, Ruby, GitHub, Jekyll, and more so I can more quickly get back to coding.
File | Description |
---|---|
.bash_profile |
Customizes the Terminal.app prompt and echoes the currently checked out Git branch. |
.gitconfig |
Global Git configuration to specify my name and email, shortcuts, colors, and more. |
.gitignore |
The ignore file from twbs/bootstrap that I use everywhere. |
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/mdo/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.
- Load
.zshrc
- Load
.gitconfig
contents into the global~/.gitconfig
- Generate an access token for Terminal to auth your GitHub account when 2FA is enabled.
# Generate Access Token
$ ssh-keygen -t ed25519 -C "[email protected]"
$ ssh-add -K ~/.ssh/id_ed25519
$ ssh-add -l -E sha256
# To Check if you have access
$ eval "$(ssh-agent -s)"
- Install node via Homebrew:
brew install node
. - Install nvm via Homebrew:
brew install nvm
.
- Disable LCD font smoothing
- Change Time Format
System Preference
>Dock & Menu Bar
>Clock
>Time Options
>Digital
- Hide desktop icons with
defaults write com.apple.finder CreateDesktop false; killall Finder
- Set sidebar icons to Small
- Adjust iTerm Shortcut Keys
- Go to Preferences... > Profiles > Keys (not Preferences... > Keys)
- On current versions (3.14+) you then switch to the Key Mappings tab
- Press Presets... dropdown button.
- Select Natural Text Editing
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!
Yup, it does. Hopefully it does on yours as well, but please don't hate me if it doesn't.
<3