summaryrefslogtreecommitdiff
path: root/.chezmoi.toml.tmpl
blob: 038acdc3be5697a0f0a7a5fad8257d21f4196592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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"]