add .osid trick

This commit is contained in:
2022-05-10 16:29:56 -06:00
parent d4c4c65456
commit 1bba28bc3f
2 changed files with 11 additions and 7 deletions

8
.chezmoi.toml.tmpl Normal file
View File

@@ -0,0 +1,8 @@
{{- $osid := .chezmoi.os -}}
{{- if hasKey .chezmoi.osRelease "id" -}}
{{- $osid = printf "%s-%s" .chezmoi.os .chezmoi.osRelease.id -}}
{{- end -}}
[data]
osid = {{ $osid | quote }}