install.fairie/home/dot_local/bin/executable_gist.tmpl

5 lines
No EOL
355 B
Cheetah

{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "gist")) -}}
{{ includeTemplate "secrets/gist" | decrypt -}}
{{ else if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "gist-fallback")) -}}
{{ includeTemplate "secrets/gist-fallback" }}
{{- end -}}