Closed ehudkaldor closed 4 years ago
Thanks very much for reporting this. The underlying problem was that automatic template generation was disabled by default in #404 but I forgot to update the how-to documentation, which assumed that autotemplate was enabled by default.
I've updated the docs in #546. In the short term you can fix this by adding the --autotemplate
to the chezmoi add
command, for example:
chezmoi add -T --autotemplate ~/.gitconfig
Describe the bug I followed the description on creating a template from the how-to page, but the file is added as is
To reproduce chezmoi add ~/.gitconfig
Expected behavior values existing in ~/.config/chezmoi/chezmoi.toml should be created as template markers, such as:
Output of command with
--verbose
Output of
chezmoi doctor
Additional context my understanding is that when creating the template, it should be created with the values replaced by the template markers
{{ email }}
. but when i ranchezmoi add -T ~/.gitconfig
, it added it as is, with the existing values.