dotfiles/.dotfiles
2023-03-20 16:57:55 +01:00
..
arch_install.md arch_install: Add toc to doc 2023-02-04 18:36:46 +01:00
pkglist-aur.txt arch-install: Update pkglists 2023-03-20 16:57:55 +01:00
pkglist-flatpak.txt arch-install: Update pkglists 2023-03-20 16:57:55 +01:00
pkglist.txt arch-install: Update pkglists 2023-03-20 16:57:55 +01:00
README.md readme: Give credit for Nyarch background image 2022-05-02 13:25:32 +02:00

My Dotfiles using a bare git repository

Setup repository and worktree

git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# ideally place the alias into your shells alias file
dotfiles config --local status.showUntrackedFiles no
dotfile add [...]
dotfiles commit [...]
# Setup remote git repository
dotfiles push

Install / restore dotfiles

echo ".dotfiles" >> .gitignore
git clone --bare <remote-git-repo-url> $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
dotfiles checkout

References

Atlassian dotfiles git Guide The best way to store your dotfiles

Credits

"Nyarch"-Wallpaper .config/sway/backgrounds/Nyarch_Wallpaper.png was made by reddit user /u/ishaan_p