Skip to content

Commit b6dfa50

Browse files
committed
Refactor config field names
1 parent 5c6ad4a commit b6dfa50

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

home/.chezmoi.toml.tmpl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ $email := promptStringOnce . "email" "Email Address (Git, GPG, etc.)" -}}
2-
{{ $git_name := promptStringOnce . "git_name" "Name to use for git actions" -}}
3-
{{ $git_hooks_path := promptStringOnce . "git_hooks_path" "Custom core Git hooks path" -}}
2+
{{ $gitName := promptStringOnce . "gitName" "Name to use for git actions" -}}
3+
{{ $gitHooksPath := promptStringOnce . "gitHooksPath" "Custom core Git hooks path" -}}
44
{{ $gui := promptBoolOnce . "gui" "Enable GUI options?" -}}
55
{{ $defaultPkgType := "brew" -}}
66
{{ if eq .chezmoi.os "linux" -}}
@@ -13,8 +13,9 @@
1313

1414
[data]
1515
email = {{ $email | quote }}
16-
git_name = {{ $git_name | quote }}
17-
git_hooks_path = {{ $git_hooks_path | quote }}
16+
gitName = {{ $gitName | quote }}
17+
gitHooksPath = {{ $gitHooksPath | quote }}
1818
gui = {{ $gui }}
1919
defaultPkgType = {{ $defaultPkgType | quote }}
2020
useLinuxBrew = {{ $useLinuxBrew }}
21+
tags = {{ get $ "tags" | default list | toToml -}}

home/dot_gitconfig.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[user]
2-
name = {{ .git_name }}
2+
name = {{ .gitName }}
33
email = {{ .email }}
44
[checkout]
55
defaultRemote = origin
@@ -19,7 +19,7 @@
1919
process = git-lfs filter-process
2020
required = true
2121
clean = git-lfs clean -- %f
22-
{{ with .git_hooks_path -}}
22+
{{ with .gitHooksPath -}}
2323
[core]
2424
hooksPath = {{ . }}
2525
{{ end -}}

0 commit comments

Comments
 (0)