[!exec:age] skip 'age not found in $PATH'

mkageconfig
mkgitconfig

# create a dotfile repo with a config file template and an encrypted file
chezmoi init
cp $CHEZMOICONFIGDIR/chezmoi.toml $CHEZMOISOURCEDIR/.chezmoi.toml.tmpl
chezmoi add --encrypt $HOME/.file
chezmoi git add .
chezmoi git commit -- --message 'Initial commit'

chhome home2/user

# test that chezmoi init --apply uses the configured encryption from the template
chezmoi init --apply file://$WORK/home/user/.local/share/chezmoi
cmp $HOME/.file golden/.file

-- golden/.file --
# contents of .file
-- home/user/.file --
# contents of .file
