init --prompt* asks for the whole prompt, is this intended functionality? #3225
-
I'm not sure if this is the correct functionality or if my setup is just incorrect. This is my config:
I'd appreciate any advice, obviously it works, but makes the command rather wordy. I feel like I'm missing something rather than this being intended. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
See chezmoi init command and promptStringOnce template function |
Beta Was this translation helpful? Give feedback.
-
If you're using the same defaults, why don't you add a default value directly on your template? |
Beta Was this translation helpful? Give feedback.
No. The
--promptBool
flags are for testing your config file template withchezmoi execute-template
so you don't have to re-enter the answers each time.If you want to set up a machine automatically, either use template logic in your config file template, or use an environment variable.
For example:
or