-
Hi, I was curious if Chezmoi or it's users have methods for making sure I don't The wider I expand my dotfiles config footprint, the more likely I am going to be working with a program or config that either changes it config autonomously, or I will change it without remembering to use Chezmoi. Of course, this isn't problematic on it's own since Chezmoi can merge/pull these changes in, but I find it likely that I will:
So far, I found that the only real way is to make sure I use More or less, I wish Chezmoi had options to provide data loss mitigation or warnings by default. I'm hoping the community may offer suggestions from their experience, or point me in the right direction to using existing solutions that I am unaware of. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
chezmoi already does this. You can always use
chezmoi encourages you to keep your dotfiles in version control, so you can always roll back to a previous version. Of course, in the case of accidentally overwriting a file, you can always retrieve the file from your backup system. chezmoi is a dotfile manager, not a backup system.
What, exactly, do you think chezmoi should do that it doesn't do already? |
Beta Was this translation helpful? Give feedback.
chezmoi already does this.
You can always use
chezmoi diff
to see exactly what changes chezmoi will make to your system.chezmoi apply
will warn you if a file managed by chezmoi has been changed since chezmoi last wrote it.chezmoi managed
andchezmoi unmanaged
tell you exactly which files are managed by chezmoi.chezmoi encourages you to keep your dotfiles in version control, so you can always roll back to a previous version.
Of course, in the case of accidentally overwriting a file, you can always retrieve the file from your backup system. chezmoi is a dotfile manager, not a backup system.