This is designed to bootstrap a clean install of macOS quickly.
# First, create an alias to support the dotfile git dir
alias gitdf='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# Clone Dotfile Repo
git clone --bare https://github.com/rvalente/dotfiles.git $HOME/.dotfiles
# Dont Show Untracked Files
gitdf config --local status.showUntrackedFiles no
# Checkout Dotfiles into your Home Dir
# NOTE: Either remove or move any conflicting dotfiles
gitdf checkout
# Thats It! Open a new ShellEnsure you create a ~/.gitconfig.local file with your username, email, and gpg signingkey.
[user]
name = GIT_NAME
email = GIT_EMAIL
signingkey = SIGNING_KEY
[github]
user = GITHUB_USERNAME
token = GITHUB_TOKENAlso important to note, if you receive an error when signing a commit with GPG, then run the following:
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
killall gpg-agentThanks to Smyck for making a color scheme that doesn’t suck.