Run this on a new machine:
curl -L https://raw.githubusercontent.com/thedersen/dotfiles/master/install.sh | zshor, follow instructions below for a more manual process.
- Install Homebrew
brew install git
You can clone the repository wherever you want. The bootstrapper script will pull in the latest version and copy the files to your home folder.
git clone https://github.com/thedersen/dotfiles.git
cd dotfiles
source bootstrap.shTo update, cd into your local dotfiles repository and then:
source bootstrap.shAlternatively, to update while avoiding the confirmation prompt:
source bootstrap.sh -fIf ~/.extra exists, it will be sourced along with the other files. You can use this to add a few custom commands without the need to fork this entire repository, or to add commands you don’t want to commit to a public repository.
# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
git config --global user.name "username"
git config --global user.email "username@example.com"You could also use ~/.extra to override settings, functions and aliases.
When setting up a new Mac, you may want to set some sensible macOS defaults:
./macOS.shWhen setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course):
./brew.sh- Mathias Bynens for the original repository