-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Tharawut P edited this page Nov 23, 2020
·
5 revisions
- Create alias to ensure that the git bare repository works without problem.
$ echo 'alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME"' >> $HOME/.zshrc- Reload the shell settings to use that alias.
$ source ~/.zshrc- Add
.dotfiles.gitdirectory to.gitignoreto prevent recursion issues.
$ echo ".dotfiles.git" >> .gitignore- Clone the repo.
$ git clone --bare https://github.com/xcession/dotfiles.git $HOME/.dotfiles.git- Checkout the repo.
$ dotfiles checkoutIf you already have configuration files with identical names, checkout will fail. Backup and remove those fils. Skip backup if you don't need them.
- Prevent untracked files from showing up on
dotfiles status.
$ dotfiles config --local status.showUntrackedFiles noFor macOS dotfiles:
$ dotfiles checkout macos
For Linux dotfiles:
$ dotfiles checkout linux