|
|
|
|
|
by twp
2715 days ago
|
|
Yes, you can define your own template variables in the config file, for example if you include: data:
category: "linux-server"
in your .config/chezmoi/chezmoi.yaml file, you can then use it in your templates and a .chezmoiignore file (which is also treated as a template). A .chezmoiignore file could look like: {{ if eq .category "linux-server" -}}
.windowmanager.conf
{{ end -}}
I use this technique myself: https://github.com/twpayne/dotfiles/blob/master/.chezmoiigno... |
|
I'll definitely try it out!