Skip to content
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

"Template" version of Chezmoi config file which gets synced #3567

Closed
J-Kappes opened this issue Feb 14, 2024 · 4 comments
Closed

"Template" version of Chezmoi config file which gets synced #3567

J-Kappes opened this issue Feb 14, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@J-Kappes
Copy link

Is your feature request related to a problem? Please describe.

I'm always frustrated when I set up a new machine and the config entries I'm missing pop up one by one.

Describe the solution you'd like

I would prefer it if calling chezmoi edit-config on a new machine copied a "template" version of my config into the expected location and then opened that file. This "template" version is a hidden file at the base of my chezmoi directory .config.<format> which is a copy of my config but with all its values set to an empty string. Perhaps a chezmoi sync-config command generates this file from the config currently in use.

This way, I immediately have an overview of which values I might need to set in the near future or can even set them all right then and there.

Describe alternatives you've considered

I've tried adding my config to chezmoi. It wasn't allowed.

@J-Kappes J-Kappes added the enhancement New feature or request label Feb 14, 2024
@twpayne
Copy link
Owner

twpayne commented Feb 14, 2024

https://www.chezmoi.io/user-guide/setup/#create-a-config-file-on-a-new-machine-automatically ?

@bradenhilton
Copy link
Collaborator

@twpayne https://www.chezmoi.io/reference/configuration-file/ mentions the path that chezmoi reads its config from, but does not mention that this file/path can't or shouldn't be added to the source state, and makes no mention of the config template.

Do you think a quality pass is in order for this and anywhere else the .config/... path is mentioned? I'll look for more examples...

@twpayne
Copy link
Owner

twpayne commented Feb 14, 2024

Do you think a quality pass is in order for this and anywhere else the .config/... path is mentioned? I'll look for more examples...

Yes please! Quality passes are fantastic.

@twpayne
Copy link
Owner

twpayne commented Feb 14, 2024

In the short term, I'll close this issue as resolved. Please re-open if needed.

@twpayne twpayne closed this as completed Feb 14, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants