feat: template in name and email

This commit is contained in:
Matthew Ryan Dillon 2024-10-03 11:33:39 -04:00
parent 642e0958e0
commit 15d78d24ed
4 changed files with 12 additions and 7 deletions

View file

@ -6,10 +6,15 @@
{{- $choices := list "wsl" "devterm" "personal" "work" -}} {{- $choices := list "wsl" "devterm" "personal" "work" -}}
{{- $hosttype := promptChoiceOnce . "hosttype" "What type of host are you on" $choices -}} {{- $hosttype := promptChoiceOnce . "hosttype" "What type of host are you on" $choices -}}
{{ $name := promptString "name" -}}
{{ $email := promptString "email" -}}
encryption = "age" encryption = "age"
[age] [age]
identity = "~/.key.txt" identity = "~/.key.txt"
recipient = "age1yd87u4ae86erpem2tynyl959ppc8a3jt4ztssykytzaklut6uvus5prt2t" recipient = "age1yd87u4ae86erpem2tynyl959ppc8a3jt4ztssykytzaklut6uvus5prt2t"
[data] [data]
hostname = {{ $hostname | quote }} hostname = {{ $hostname | quote }}
hosttype = {{- $hosttype | quote -}} hosttype = {{ $hosttype | quote }}
name = {{ $name | quote }}
email = {{ $email | quote }}

View file

@ -2,8 +2,8 @@
path = /opt/local/share/git-delta/themes.gitconfig path = /opt/local/share/git-delta/themes.gitconfig
[user] [user]
name = Matthew Dillon name = {{ .name }}
email = matthewrdillon@gmail.com email = {{ .email }}
[core] [core]
editor = hx editor = hx
pager = delta pager = delta

View file

@ -1,5 +1,5 @@
# Matthew Dillon # {{ .name }}
# matthewrdillon@gmail.com # {{ .email }}
# Added by OrbStack: command-line tools and integration # Added by OrbStack: command-line tools and integration
source ~/.orbstack/shell/init.zsh 2>/dev/null || : source ~/.orbstack/shell/init.zsh 2>/dev/null || :

View file

@ -1,6 +1,6 @@
[user] [user]
name = "Matthew Ryan Dillon" name = {{ .name | quote }}
email = "matthewrdillon@gmail.com" email = {{ .email | quote }}
[git] [git]
push-branch-prefix = "thermokarst/jj-" push-branch-prefix = "thermokarst/jj-"