Re:Dotfiles: Unofficial Guide to Dotfiles on GitHub
by pprotas on Tuesday May 07, 2024 @03:02PM
(#40290104)
What do you think is the risk here? I don’t see a code path to remove my home dir in the script
EDIT: Unless I have a dir called "*" in my dotfiles, but at that point I deserve to have my home dir removed :P ZSH also asks for confirmation first
Maybe you haven't lost data from this yet, but this is where Chezmoi has nice guardrails and protects against, e.g., modifications or additions accidentally being made to $HOME instead of the dotfiles dir, which look like they would be silently blown out by your current process.
Just my 2¢ from someone who used to do it this way and lost data because of it.