git clone https://github.com/vnctptr/dotfiles.git && cd dotfiles && ./bootstrap.sh
To update, cd
into your local dotfiles
repository and then:
source ./bootstrap.sh
Alternatively, to update while avoiding the confirmation prompt:
set -- -f; source bootstrap.sh
The bootstrapper will add the following line to your .zshrc
(if not already present):
source $HOME/.dotfilesrc
It will also store a copy of your .zshrc
in the repository. It will NOT copy .zsrhc
from the repository to your home folder.
If ~/.path
exists, it will be sourced along with the other files, before any feature testing (such as detecting which version of ls
is being used) takes place.
Here’s an example ~/.path
file that adds /usr/local/bin
to the $PATH
:
export PATH="/usr/local/bin:$PATH"
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.
- Matt Stauffer and his ohmyzsh-dotflies
- Zach Holman and his dotfiles repo
Bootstrapper based on Mathias Bynens' bootstrapper.