Skip to content

Commit

Permalink
docs: Add FAQ entry on init template functions
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Aug 16, 2022
1 parent 02b8954 commit c8399bc
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ chezmoi-cd() {
Typing `chezmoi-cd` will then change the directory of your current shell to
chezmoi's source directory.

## Why are the `prompt*` functions only available in config file templates?

chezmoi regularly needs to execute templates to determine the target contents
of files. For example, templates are executed for the `apply`, `diff`, and
`status` commands, amongst many others. Having to interactively respond each
time would quickly become tiresome. Therefore, chezmoi only provides these
functions when generating a config file from a config file template (e.g. when
you run `chezmoi init` or `chezmoi --init apply`).


## Why not use Ansible/Chef/Puppet/Salt, or similar to manage my dotfiles instead?

Whole system management tools are more than capable of managing your dotfiles,
Expand Down

0 comments on commit c8399bc

Please sign in to comment.