1
0

Config template

This commit is contained in:
2023-06-28 22:50:40 +03:00
parent 99311c85fe
commit 6fab11675e
3 changed files with 9 additions and 11 deletions

7
.chezmoi.toml.tmpl Normal file
View File

@@ -0,0 +1,7 @@
{{- $email := promptStringOnce . "email" "Email address" -}}
{{- $username := promptStringOnce . "username" "Username" -}}
[data]
username = {{ $username | quote }}
email = {{ $email | quote }}

View File

@@ -1,9 +0,0 @@
# Конфиг-файл для machine-specific настроек
Файл: `~/.config/chezmoi/chezmoi.toml`
```toml
[data]
username = "<username>"
```

View File

@@ -1,6 +1,6 @@
[user] [user]
name = {{ dig "username" "void" . }} name = {{ .username }}
email = void.sp@gmail.com email = {{ .email }}
[push] [push]
default = simple default = simple
[commit] [commit]