Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 813 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 813 Bytes

Dotfiles

Installation

Clone the dotfiles repo:

git clone --bare https://github.com/alexqhj/dotfiles.git ~/.local/share/dotfiles.git

Reset and checkout the working directory (your home directory). NB: This will override files with the same name as those in the repository.

alias dotfiles="git --work-tree=$HOME/ --git-dir=$HOME/.local/share/dotfiles.git"
dotfiles reset HEAD
dotfiles checkout ~

Further setup

Run ~/bin/setupenv.sh.

Adding and editing dotfiles

dotfiles is aliased to git --work-tree=$HOME/ --git-dir=$HOME/.local/share/dotfiles.git in .zshrc.

To stage and commit dotfiles:

dotfiles add <file>
dotfiles commit -m "<message>"

If you decide to add a .gitignore that ignores everything, you must use the -f flag when staging files.