Re:Way to store your dotfiles: A bare Git repository (2016)
by joombaga on Saturday April 06, 2019 @12:19PM
(#19591486)
Can you share?
[ Parent
| on HN ]
Re:Way to store your dotfiles: A bare Git repository (2016)
by yjftsjthsd-h on Saturday April 06, 2019 @12:28PM
(#19591530)
Sure! https://gitlab.com/snippets/1844438
EDIT: Some quirks to note, especially if you want to steal this script: 1. I use ~/.local/etc as my dotfile directory. 2. I support multiple shells but have all of them use ~/.profile rather than shell-specific files (most config overlaps, and there's a case stmt that deals with per-shell settings). 3. The vim/neovim bit at the bottom will fail silently if the directory already exists; thankfully this is rare, but it should be fixed some time.