Automatically add all files #3825
-
While editing alot of configs , i sometimes forget to add them to chezmoi and later run into some issues |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Within chezmoi, no and it’s not a feature that is suitable for addition to chezmoi. However #3680 suggests a possible approach that can be used, although it is Linux-specific. #3697 points to There are potential downsides:
I generally use |
Beta Was this translation helpful? Give feedback.
Within chezmoi, no and it’s not a feature that is suitable for addition to chezmoi. However #3680 suggests a possible approach that can be used, although it is Linux-specific. #3697 points to
chezmoi managed --include=dirs
that could seed files to watch for changes.There are potential downsides:
chezmoi apply
.chezmoi add
to re-add files will destroy any templating you applied. Consider usingchezmoi re-add
, but that will not update templates.I generally use
chezmoi merge-all
to make sure I have merged all my files prior toapply
, which allows me to test out changes in realtime but apply periodically for clean updates.