-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.chezmoi.yaml.tmpl
More file actions
63 lines (53 loc) · 1.63 KB
/
.chezmoi.yaml.tmpl
File metadata and controls
63 lines (53 loc) · 1.63 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{{- $interactive := stdinIsATTY -}}
{{- $name := "Martin Meredith" -}}
{{- if hasKey . "name" -}}
{{- $name = .name -}}
{{- else if $interactive -}}
{{- $name = promptString "name" $name -}}
{{- end -}}
{{- $email := "martin@sourceguru.net" -}}
{{- if hasKey . "email" -}}
{{- $email = .email -}}
{{- else if $interactive -}}
{{- $email = promptString "email" $email -}}
{{- end -}}
{{- $work := false }}
{{- if hasKey . "work" -}}
{{- $work = .work -}}
{{- else if $interactive -}}
{{- $work = promptBool "Is this a work machine?" $work -}}
{{- end -}}
{{- $devMachine := false }}
{{- if hasKey . "devMachine" -}}
{{- $devMachine = .devMachine -}}
{{- else if $interactive -}}
{{- $devMachine = promptBool "Is this a devMachine machine?" $devMachine -}}
{{- end -}}
{{- $gaming := false }}
{{- if hasKey . "gaming" -}}
{{- $gaming = .gaming -}}
{{- else if $interactive -}}
{{- $gaming = promptBool "Is this a gaming machine?" $gaming -}}
{{- end -}}
{{- $gpgSign := false -}}
{{- if hasKey . "signGitCommits" -}}
{{- $gpgSign = .signGitCommits -}}
{{- else if $interactive -}}
{{- $gpgSign = promptBool "Sign Git Commits?" $gpgSign -}}
{{- end -}}
{{- $signingKey := "065BFD16E4BFB184D73F768C2AFBD67FD133AC6E" -}}
{{- if hasKey . "signingKey" -}}
{{- $signingKey = .signingKey -}}
{{- else if $interactive -}}
{{- $signingKey = promptString "Signing Key?" $signingKey -}}
{{- end }}
progress: true
sourceDir: "{{ .chezmoi.sourceDir }}"
data:
name: "{{ $name }}"
email: "{{ $email }}"
work: {{ $work }}
devMachine: {{ $devMachine }}
gaming: {{ $gaming }}
signGitCommits: {{ $gpgSign }}
signingKey: {{ $signingKey }}