blob: 671e9234e8986ef072ee539a8a25babf7a3a2140 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{{- $defaultPager := "less" -}}
{{- if lookPath "delta" -}}
{{- $defaultPager = "delta" -}}
{{- end -}}
{{- $defaultUsername := .chezmoi.username | replaceAllRegex "^[^\\\\]+\\\\" "" }}
{{- $defaultName := $defaultUsername | title -}}
{{- $defaultEmail := printf "%s@%s" $defaultUsername .chezmoi.hostname -}}
[diff]
pager = {{ promptString "chezmoi pager" $defaultPager | quote }}
[data.git]
name = {{ promptString "git name" $defaultName | quote }}
email = {{ promptString "git email" $defaultEmail | quote }}
pager = {{ promptString "git pager" $defaultPager | quote }}
[data.todo]
personalPriority = {{ promptString "personal todo.txt priority words" $defaultUsername | quote }}
[data.github]
username = {{ promptString "GitHub username" "n/a" | quote }}
[data.ssh]
user = {{ promptString "SSH default user" $defaultUsername | quote }}
|