summaryrefslogtreecommitdiff
path: root/.chezmoi.toml.tmpl
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2024-04-11 23:20:57 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commita99b211b3bec43ebe3cdfa1899cba227d1d569a4 (patch)
treea648712a5fa523f04670c32dd8eff6c2138b6669 /.chezmoi.toml.tmpl
Initial commit
Diffstat (limited to '.chezmoi.toml.tmpl')
-rw-r--r--.chezmoi.toml.tmpl25
1 files changed, 25 insertions, 0 deletions
diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl
new file mode 100644
index 0000000..2f01e85
--- /dev/null
+++ b/.chezmoi.toml.tmpl
@@ -0,0 +1,25 @@
+# vim:ft=toml
+
+# ~/.local/share/chezmoi/.chezmoi.toml.tmpl
+# =============================================================================
+# Used to customize configuration when doing a `chezmoi init`.
+#
+# This template file will trigger prompts to fill-in machine-specific
+# templateable values. The resulting file is then created at
+# `~/.config/chezmoi/chezmoi.toml`
+# See https://www.chezmoi.io/docs/how-to/
+#
+# {{- /* This file supports Go's text/template language. */ -}}
+#
+
+{{ $git_email := promptStringOnce . "git_email" "Email address for Git global config" -}}
+{{ $git_name := promptStringOnce . "git_name" "Display name for Git global config" -}}
+
+{{ if eq .chezmoi.os "windows" -}}
+[cd]
+ command = "pwsh"
+{{ end -}}
+
+[data]
+ git_email = {{ $git_email | quote }}
+ git_name = {{ $git_name | quote }}