{{- $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 }}