Skip to content

Couple of questions #2210

Answered by bradenhilton
segevfiner asked this question in Q&A
Discussion options

You must be logged in to vote
  1. What's the difference between chezmoiscripta and the run_ attribute?

.chezmoiscripts is a special directory intended to help organize run_* scripts without creating a directory structure in the destination directory. For example, you can place all Linux run_ scripts in .chezmoiscripts/linux/. Scrips which you intend to run on the machine outside of chezmoi (executable_ scripts) should not be placed in this directory.

  1. What's the difference between run_ and onchange_? The docs weren't very clear about this.

From https://www.chezmoi.io/reference/target-types/#scripts:

Scripts are executed on every chezmoi apply, unless they have the once_ or onchange_ attribute. run_once_ scripts ar…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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