-
Fork this repository
-
Clone your new fork
# First download clone script curl -fsSLJO https://raw.githubusercontent.com/davidbarton/dotfiles-template/main/.dotfiles/scripts/clone.sh # Make it executable chmod +x clone.sh # Execute clone script, do not forget to use path to your fork ./clone.sh <repository> # You can delete clone script now rm clone.sh
-
Add an alias to your .zshrc (or .bashrc)
alias dotfiles='git --git-dir=$HOME/.dotfiles/.git --work-tree=$HOME'
-
Source updated .zshrc
source .zhsrc
-
You are all setup and can start using it as any other git repo
dotfiles add .gitconfig dotfiles commit -m "Add .gitconfig"