From 4936224263dcbb3e27671d3f88c7b558813f9575 Mon Sep 17 00:00:00 2001 From: Alen Date: Sat, 9 Sep 2023 16:37:16 +0400 Subject: Add .gitconfig --- .chezmoi.toml.tmpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .chezmoi.toml.tmpl (limited to '.chezmoi.toml.tmpl') 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 }} -- cgit 1.4.1-2-gfad0