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

5 lines
355 B
Cheetah
Raw Normal View History

{{- 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 -}}