Replies: 2 comments 6 replies
-
|
Interesting idea, how would these 'deduced' groups be maintained? How will the source state look like with mixed targeted and untargeted files? How will the source dir distinguish between a regular directory and a target group? |
Beta Was this translation helpful? Give feedback.
-
|
To elaborate on the Because this is mostly for package management, I call the tags that I use There are more of these that I use (AWS roles, Git identities), but this is the main one. I then use these -- mostly as
One could take advantage of such tag-like things and chezmoi's "do not render an empty file" behaviour to do something like: This would not render your This won't work on a per-apply basis (and you wouldn't want it to do so, because that would result in inconsistent state), but you could have featuresets for rendering entire configurations. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Being able to have target that groups several files would be much more convenient:
Having:
git/dot_gitignore
git/dot_gitconfig
zsh/dot_zshrc
Instead of:
dot_gitignore
dot_gitconfig
dot_zshrc
would allow :
chezmoi listto provide a less cluterred result:git
zsh
and allow simpler command
chezmoi apply gitwould apply all the files associated to git (you don't even need to remember which ones)This would "just" require one more level to store the target name.
The target name could be deduced from the file added (removing trailing 'rc' or 'config') or passed with a --target flag
chezmoi add ~/.bashrc=> target deduced 'bash'chezmoi add --target=shell ~/.bashrc=> target specified 'shell'Beta Was this translation helpful? Give feedback.
All reactions