Skip to content

Automatically add all files #3825

Answered by halostatue
rubiin asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • Watching for changes would trigger your watch flow with chezmoi apply.
  • Using chezmoi add to re-add files will destroy any templating you applied. Consider using chezmoi re-add, but that will not update templates.

I generally use chezmoi merge-all to make sure I have merged all my files prior to apply, which allows me to test out changes in realtime but apply periodically for clean updates.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rubiin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants