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" 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/get-updates
bin/lock bin/lock
.xinitrc .xinitrc

View file

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