diff options
Diffstat (limited to '.chezmoi.toml.tmpl')
-rw-r--r-- | .chezmoi.toml.tmpl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..b32744b --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,14 @@ +{{- $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 }} |