From a99b211b3bec43ebe3cdfa1899cba227d1d569a4 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Thu, 11 Apr 2024 23:20:57 -0500 Subject: Initial commit --- .chezmoi.toml.tmpl | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..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 }} -- cgit v1.2.3