blob: 7c1864f057f59751f0603ffe421751c6cd5a61d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{{- $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 }}
|