-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add customizable init command #664
Comments
Adding my 2c that this is a great idea, this could be a really powerful feature, another use case is setting up SSH keys to pull from private repos on Github. FWIW I've worked around this by prefixing a "bootstrap" directory with an Worth noting that this would be a pretty significant breaking change as currently I feel safe knowing that |
For info, this is now done in the In For pulling SSH keys, |
Is your feature request related to a problem? Please describe.
Before I can use chezmoi to create my dotfiles I need to install my password manager so chezmoi can retrieve secrets from it. Right now, I have to do this manually, but I should be able to automate this and have it integrated into
chezmoi init
.Describe the solution you'd like
I'd like to be able to have a file like
.chezmoiinit
orrun_init_foo
in my source directory that gets run when I runchezmoi init
on a new machine. It should be a template so I can handle machine-specific differences.Describe alternatives you've considered
Adding a
run_once_
script that runs early and installs the password manager before chezmoi needs it. This feels a bit clumsy and fragile though. It would be better to have a known script run onchezmoi init
.Additional context
None.
The text was updated successfully, but these errors were encountered: