These are my dotfiles for use on arch and ubuntu based linux distributions. It includes:
- Clone the repo
cd ~git clone --bare git@github.com:gabrielforster/dotfiles.git .dotfiles- Include the dotfiles alias in .bashrc / .zshrc
echo alias dotfiles=\"git --git-dir='$HOME'/.dotfiles --work-tree='$HOME'\" >> .bashrcsource ~/.bashrcAvoid tracking files not in the repo.
dotfiles config status.showUntrackedFiles noMove the files to their locations.
dotfiles checkout- Install the submodules
cd ~
dotfiles submodule update --init --recursive- Checkout to master branch on submodules
dotfiles submodule foreach 'git checkout master'Once setup, useful commands include:
dotfiles status
dotfiles add <filename> # to add dotfiles changes
dotfiles add -u # to add unstaged files