Skip to content

Instantly share code, notes, and snippets.

@unsalted
Last active February 23, 2018 19:11
Show Gist options
  • Save unsalted/5b718a92b107423e37bef8833e0bf0b1 to your computer and use it in GitHub Desktop.
Save unsalted/5b718a92b107423e37bef8833e0bf0b1 to your computer and use it in GitHub Desktop.
Quick setup of MacOS after clean install

CLI installs

# Homebrew
# This also installs Command Line Tools, which includes Git and other essential applications.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# NVM (Node version manager)
# Follow instructions for .bash_profile addition
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash

# Case insensitive autocomplete
echo "set completion-ignore-case On" >> ~/.inputrc

Setting up git

Adding ssh key

# generate id_rsa and add to agent
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa

# add to github
pbcopy < ~/.ssh/id_rsa.pub

# Add to git account: Preferences > SSH and GPG keys

# add account
git config --global credential.helper cache --timeout=3600
git config --global user.email "[email protected]"
git config --global user.name "Billy Everyteen"

# set editor
git config --global core.editor nano

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