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]
|
||||
name = {{ dig "username" "void" . }}
|
||||
email = void.sp@gmail.com
|
||||
name = {{ .username }}
|
||||
email = {{ .email }}
|
||||
[push]
|
||||
default = simple
|
||||
[commit]
|
||||
|
||||
Reference in New Issue
Block a user