Config template
This commit is contained in:
7
.chezmoi.toml.tmpl
Normal file
7
.chezmoi.toml.tmpl
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{{- $email := promptStringOnce . "email" "Email address" -}}
|
||||||
|
{{- $username := promptStringOnce . "username" "Username" -}}
|
||||||
|
|
||||||
|
[data]
|
||||||
|
username = {{ $username | quote }}
|
||||||
|
email = {{ $email | quote }}
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Конфиг-файл для machine-specific настроек
|
|
||||||
|
|
||||||
Файл: `~/.config/chezmoi/chezmoi.toml`
|
|
||||||
|
|
||||||
```toml
|
|
||||||
[data]
|
|
||||||
username = "<username>"
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user