# 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" {{ else }} [cd] command = "zsh" {{ end -}} [data] git_email = {{ $git_email | quote }} git_name = {{ $git_name | quote }} edit.command = "nvim" [diff] exclude = ["scripts"]