[short] stop

mkhomedir

# test adding a file with --autotemplate
chezmoi add --autotemplate $HOME${/}.gitconfig
cmp $CHEZMOISOURCEDIR/dot_gitconfig.tmpl golden/dot_gitconfig.tmpl

-- golden/dot_gitconfig.tmpl --
[core]
  autocrlf = false
[user]
  email = {{ .email }}
  name = Your Name
-- home/user/.config/chezmoi/chezmoi.toml --
[data]
  email = "you@example.com"
