Closed evanrittenhouse closed 1 year ago
You need to use a config file template, which will live in .local/share/chezmoi/.chezmoi.yaml.tmpl
.
The config file is special because if you were to treat it as a normal dotfile (as you are currently doing with ~/.local/share/chezmoi/chezmoi.yaml.tmpl
) it does not work because the config file is only updated after chezmoi runs.
Please also check the other warnings in the output of chezmoi doctor, as they indicate other problems with your setup.
Hopefully this answers your question. Please re-open if needed.
What exactly are you trying to do?
I've recently added a
{{ $email := promptString "email" - }}
block to mychezmoi.yaml.tmpl
file, similar to the reference guide. When I runchezmoi apply
, I getI understand that
promptString
can only be ran when runningchezmoi init
- is there a way to keep this line in mychezmoi.yaml.tmpl
file without seeing the error every time I runchezmoi apply
? Describe in as much detail as possible.What have you tried so far?
Above Describe what you have tried so far. Above
Where else have you checked for solutions?
Github, Google
Output of any commands you've tried with
--verbose
flagOutput of
chezmoi doctor
Additional context
Add any other context about the problem here.