diff options
Diffstat (limited to '.chezmoi.toml.tmpl')
| -rw-r--r-- | .chezmoi.toml.tmpl | 25 |
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 }} |
