summaryrefslogtreecommitdiff
path: root/.chezmoi.toml.tmpl
blob: 3b551718527645bcdf7396e635298f2ed514a75f (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
34
35
36
# 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" -}}

{{ $enable_nvim_copilot := promptBoolOnce . "enable_nvim_copilot" "Enable features related to GitHub Copilot" -}}

{{ if eq .chezmoi.os "windows" -}}
[cd]
    command = "pwsh"
{{ else }}
[cd]
    command = "zsh"
{{ end -}}

[data]
    git_email = {{ $git_email | quote }}
    git_name = {{ $git_name | quote }}
    enable_nvim_copilot = {{ $enable_nvim_copilot }}

[diff]
    exclude = ["scripts"]

[edit]
    command = "nvim"