-
Hi! I'm currently trying to put my dotfiles under chezmoi management and noticed that by default, chezmoi will overwrite existing files during the first Is there a way to be prompted before overwriting never-before-written files like those that have been written once? I found the Apart from that chezmoi looks pretty nice so far, looking forward to using it! Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Overwriting never-before-written files is exactly what you want to do when you setup your dotfiles on a new machine. This is by far the most common use case, and so needs to be the default. The Also, the quick start guide recommends using It would be possible to add a, say, Thoughts? |
Beta Was this translation helpful? Give feedback.
Overwriting never-before-written files is exactly what you want to do when you setup your dotfiles on a new machine. This is by far the most common use case, and so needs to be the default.
The
chezmoi diff
command tells you exactly what changeschezmoi apply
will make, and the quick start guide emphasizes that you should runchezmoi diff
to check the changes before you runchezmoi apply
.Also, the quick start guide recommends using
chezmoi add
to add a file to be managed by chezmoi, thenchezmoi edit
, thenchezmoi apply
. If you follow this process, then you will get a warning if you modify the original dotfile between thechezmoi add
and thechezmoi apply
.It would be possible to add a, …