How can I execute a template-based script before running chezmoi apply
?
#4221
-
My Currently, my approach is as follows: my
|
Beta Was this translation helpful? Give feedback.
Answered by
bradenhilton
Jan 23, 2025
Replies: 1 comment 6 replies
-
Have you tried a |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you not replace your script with
lookPath
s in your external template? e.g.For what it's worth, I prefer to build my configs with
dict
s/list
s etc., then finally output them withto{Yaml,Toml,PrettyJson}
. For example, here are my externals formpv
: