summary refs log tree commit diff
path: root/.chezmoi.toml.tmpl
diff options
context:
space:
mode:
authorAlen <alen@dotfiles.xyz>2023-09-09 16:37:16 +0400
committerAlen <alen@dotfiles.xyz>2023-09-09 16:37:16 +0400
commit4936224263dcbb3e27671d3f88c7b558813f9575 (patch)
tree3c12c0df12078287e173fbd8631b58dd5160309f /.chezmoi.toml.tmpl
parent45bc2e16f335035a114406bea7d8ef5129a775ac (diff)
Add .gitconfig
Diffstat (limited to '.chezmoi.toml.tmpl')
-rw-r--r--.chezmoi.toml.tmpl14
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 }}