diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..0589237 --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,7 @@ +{{- $email := promptStringOnce . "email" "Email address" -}} +{{- $username := promptStringOnce . "username" "Username" -}} + +[data] +username = {{ $username | quote }} +email = {{ $email | quote }} + diff --git a/README.md b/README.md deleted file mode 100644 index d7780ee..0000000 --- a/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Конфиг-файл для machine-specific настроек - -Файл: `~/.config/chezmoi/chezmoi.toml` - -```toml -[data] -username = "" -``` - diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index c4c75dd..672a17d 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -1,6 +1,6 @@ [user] - name = {{ dig "username" "void" . }} - email = void.sp@gmail.com + name = {{ .username }} + email = {{ .email }} [push] default = simple [commit]