{{- $defaultPager := "less" -}} {{- if lookPath "delta" -}} {{- $defaultPager = "delta" -}} {{- end -}} {{- $defaultName := .chezmoi.username | title -}} {{- $defaultEmail := printf "%s@%s" .chezmoi.username .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 }}