Thierry Régagnon’s dotfiles
Installation
Prerequisite
- You are on Mac OS X
- You use Homebrew
- You have installed Git with Homebrew
Using Git and the bootstrap script
You can clone the repository wherever you want. (I like to keep it in `~/.dotfiles/) The bootstrapper script will copy the files to your home folder.
git clone http://github.com/tregagnon/dotfiles.git && cd dotfiles && ./bootstrap.sh
To update, cd
into your local dotfiles
repository and then:
./bootstrap.sh
Alternatively, to update while avoiding the confirmation prompt:
./bootstrap.sh -f
Git-free install
To install these dotfiles without Git:
cd; curl -#L https://github.com/tregagnon/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh}
To update later on, just run that command again.
Add custom commands without creating a new fork
If ~/.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.
My ~/.extra
looks something like this:
# PATH additions
export PATH="/usr/local/bin:/usr/local/git/bin"
# Git credentials
# Not in the dotfiles repository, to prevent people from committing under my name
git config --global user.name "Your Name"
git config --global user.email "your@mail.com"
git config --global github.user "yourusername"
git config --global github.token "yourtoken"
Feedback
Suggestions/improvements welcome!
Thanks to…
- Mathias Bynens for sharing his dotfiles and the bootstrap script
- anyone who published their dotfiles on GitHub with comments. I am learning a lot thanks to you!