use chezmoi templates to generalize the dots

This commit is contained in:
Daylin Morgan 2022-09-29 10:18:11 -05:00
parent 1a1c71e51c
commit f636b53432
3 changed files with 16 additions and 4 deletions

View File

@ -1 +1,13 @@
sourceDir = "~/.dotfiles"
[diff]
command = 'delta'
{{ $email := promptString "git email" -}}
{{ $name := promptString "git name" -}}
{{ $gui := promptBool "use gui configs?" -}}
[data]
email = {{ $email | quote }}
name = {{ $name | quote }}
gui = {{ $gui }}

View File

@ -1,4 +1,4 @@
{{- if ne .chezmoi.hostname "thinkpad" }}
{{- if (not .gui) }}
bin/get-updates
bin/lock
.xinitrc

View File

@ -1,10 +1,10 @@
[credential]
helper = cache
[core]
excludesfile = /home/daylin/.config/git/ignore
excludesfile = /home/{{- .chezmoi.username -}}/.config/git/ignore
[user]
name = Daylin Morgan
email = daylinmorgan@gmail.com
name = {{ .name }}
email = {{ .email }}
[submodule]
recurse = true
[pull]