My current dotfile-setup. Most is shamelessly borrowed from: http://code.tutsplus.com/tutorials/setting-up-a-mac-dev-machine-from-zero-to-hero-with-dotfiles--net-35449 and https://github.com/mathiasbynens/dotfiles
My ~/.extra looks something like this:
# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="Marius Hauken"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"
Your computer will prompt you to download the Xcode Command Line Tools: do it. Then run the command again. This copies your repository to ~/dotfiles and then run bootstrap.sh. When ran, it will sync the local repo and the one on GitHub, then copy those files to your home folder, overriding any existing files if they exist.
git clone https://github.com/mhauken/dotfiles.git && cd dotfiles && ./bootstrap.sh
3. Copy paste the snippets in setup-a-new-mac line by line
4. Run .osx
source .osx
Look closer on: