Add a new flag/template to output a message after init #4079
Closed
sysadmiral
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Yes, but you can also achieve this with a #!/bin/bash
# run_once_after_post-chezmoi.sh.tmpl
echo Post-chezmoi steps:
{{- if eq .chezmoi.os "Debian" }}
echo '- sudo apt install pipx'
echo '- pipx install ansible-core'
{{- end }} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was thinking after running
chezmoi init
for the first time there are probably some other commands that will be useful to run on a machine i.e. install some package or run some configuration.This assumes on a new machine you do things in this sort of order:
chezmoi init
I think it would be handy if some special flag/templatedir exists that will output a message after init to remind you of the additional steps you might want.
I think a template would be nicer because then you can output os/machine specific messages.
Example template in
.chezmoiinitmessagetemplates
(made up dir name):Example output:
Does this sound useful?
Beta Was this translation helpful? Give feedback.
All reactions