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 ~/.config/nvim && dotfiles submodule updatecd ~/.config/zsh && dotfiles submodule updatecd ~/.config/i3 && dotfiles submodule updateOnce setup, useful commands include:
dotfiles status
dotfiles add <filename> # to add dotfiles changes
dotfiles add -u # to add unstaged files