-
Hello! The problem is when I add/remove a file inside I was expecting chezmoi to keep track of the added/removed files, since the directory that I'm tracking is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
By default, chezmoi will only manage entries that are explicitly listed in the source state, i.e. it will not remove unmanaged files. For cases like yours when you want chezmoi to manage the exact contents of a directory, including removing unmanaged files, you need to use the [ $ chezmoi chattr +exact ~/.config/fish/functions If you use |
Beta Was this translation helpful? Give feedback.
That is correct. You need to use
chezmoi forget
orchezmoi destroy
.You should use
chezmoi cd
.chezmoi re-add
does not handle the case you want (although this might change in the future, see #2298).