-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.toml.tmpl
34 lines (29 loc) · 1.07 KB
/
.chezmoi.toml.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{/* boolean feature tags */}}
{{- $headless := false -}}{{/* true if this machine does not have a screen and keyboard */}}
{{- $ephemeral := false -}}{{/* true if this machine is ephemeral, e.g. a cloud or VM instance */}}
{{- "" -}}
{{- $name := "Sean Dunn" -}}
{{- $email := "[email protected]" -}}
{{- $signingkey := "" -}}
{{- $is_codespace := false }}
{{- if (eq .chezmoi.username "codespace") }}
{{- $is_codespace = true }}
{{- end }}
{{- if (env "ASK") }}
{{- $name = promptString "Full Name" $name -}}
{{- $email = promptString "Email" $email -}}
{{- end }}
{{/* detect GitHub codespaces, VSCode remote containers, Docker containers, and Vagrant boxes */}}
{{- if or (env "CODESPACES") (env "REMOTE_CONTAINERS_IPC") (eq .chezmoi.username "root" "vagrant" "vscode") -}}
{{- $headless = true -}}
{{- $ephemeral = true -}}
{{- end -}}
{{- if eq .chezmoi.os "windows" -}}
{{- $ephemeral = true -}}
{{- end -}}
[data]
name = {{ $name | quote }}
email = {{ $email | quote }}
signingkey = {{ $signingkey | quote }}
headless = {{ $headless }}
ephemeral = {{ $ephemeral }}