install.fairie/dotfiles/.local/share/chezmoi/.chezmoi.toml.tmpl

32 lines
911 B
Cheetah
Raw Normal View History

{{- $codespaces:= env "CODESPACES" | not | not -}}
{{- if $codespaces | not }}
{{- $email := promptStringOnce . "email" "Primary e-mail address" -}}
{{- $name := promptStringOnce . "name" "Full name" -}}
{{- $gmailAddress := promptStringOnce "Gmail address" -}}
{{- $gmailAddressAppPassword := promptStringOnce "Gmail app password" -}}
{{- end }}
sourceDir = {{ .chezmoi.sourceDir | quote }}
[data]
codespaces = {{ $codespaces }}
headless = {{ $headless }}
{{- if $codespaces }}
email = "help@megabyte.space"
gmailAddress = ""
gmailAddressAppPassword = ""
name = "Megabyte Labs"
{{- else }}
email = {{ $email | quote }}
gmailAddress = {{ $gmailAddress | quote }}
gmailAddressAppPassword = {{ $gmailAddressAppPassword | quote }}
name = {{ $name | quote }}
{{- end }}
[diff]
format = "git"
pager = "delta"
[git]
autoCommit = true
autoPush = true