feat: bifurcating profiles

This commit is contained in:
Matthew Ryan Dillon 2025-01-02 14:40:58 -05:00
parent d97474bff6
commit e2378b0737
11 changed files with 148 additions and 23 deletions

22
foo.age Normal file
View file

@ -0,0 +1,22 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBwekJ1R1Z6M0hLN2pESFBY
NW1BYjFPTjNKMEFaeFJsdWtzK2lnQkl3emdzCitrREJ3RGd4TWh0R25yaDRRd0pi
bDlrbG1ucDV2SXd5NklMeUx3K2F0Z0UKLS0tIDZTUjBYV1Q1TDh4RVJQUzlTUENS
YllMcXlQalVoUkY5VzN6bWJTakt4L2cKlYHzGnnjKZQpZzc7NdjrRsXum2tfcjwk
T45iSastj8gFQLbB3fIElsprJAgCPhu0jcWtbvgiFpESRlmThzP1wWf9DmgDNnHI
68IBPaM4Ru6PWBY6HTMQ4EsyzFrnuKj8ZM/RYF7fjOmKG/K1hYB7+iqwR3tlt1D2
6Cryn5qLU0Ou68nwnsXdFIcPEolVvMX4XsGrSaSnprNVF3hCW9vtYEdjJvIgKNUz
3xX+J3MfGIR+oSfYb6o81aA9F5xS2obbPaBIW04x9ZQ4ik20GiYt+gI2H3QTOp7z
+/Je1HIF2/biWwP7qgdbusAd+XFbwPs4wh/M3XEqiEVcY+MvshmWUbjShjYq0c0e
ySqF+ZPSw0NKg50O+avZeH1LxPXqshr2RHpGDNFGHaJRIKse0W1hNPZ5rj8daJj1
f8eIcfZ4fcIAgci3Je5PZHdErEnhU2LsvTEeGuINdNjiEpV+YqMEhZlKE2h0sdeF
oYRQt8enCCqFEizMTm1CQRcix7WYLx2CCJEbH8jnDlnlJnNRQ4utHA+q8c0ERndz
iDtgbjhktDgNRtXx/gvf9Fu1Jh4fHz2brFTIeuI27hy9OmtcNF5Z2U+86K3QkGyr
Dp3NFQUXlkv5NLDeCACbsqE99BBfczhliVFCeR1WaUtriNbXkzO17KDy7vI7XUwb
+V4OW7y5+2v4UQX4GbhViUSioxIfjil5NHXYIXIhlk2QB50odvbkfhfEboir0+vC
fx1+9SzZB+Krp+/29u+mN357OSRTWMkZephjUCPP42rOqe+WYFBVLQJ60JAHsyye
Vb9ge7FPCHHO7TmzD2a5rWU3u0Mzh5l8x0KoVoaP7PZnmQmFJ8TdRAGaMowH/Ej+
IiHbStLtMqLpRtHMou5+wC+oIJW6mgJCS8m+dJPG522xHpDnTmg3rHRax771i9SP
fpL9OPDcqCQABCU8iTL1K/iisj/1+0sjV3ojBZb6FTk14rrJyCes6BgVU46Yr19T
i52qXa5Pq0i1V4Md72ucws8Y7qaOjkNd/5Zrzy/7qOh7Iuv1fLo=
-----END AGE ENCRYPTED FILE-----

View file

@ -7,8 +7,10 @@
{{- $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" -}} {{ $name := promptString "name" -}}
{{ $email := promptString "email" -}} {{ $email_personal := promptString "email_personal" -}}
{{ $github := promptString "github" -}} {{ $email_work := promptString "email_work" -}}
{{ $github_personal := promptString "github_personal" -}}
{{ $github_work := promptString "github_work" -}}
encryption = "age" encryption = "age"
[age] [age]
@ -18,5 +20,7 @@ encryption = "age"
hostname = {{ $hostname | quote }} hostname = {{ $hostname | quote }}
hosttype = {{ $hosttype | quote }} hosttype = {{ $hosttype | quote }}
name = {{ $name | quote }} name = {{ $name | quote }}
email = {{ $email | quote }} email_personal = {{ $email_personal | quote }}
github = {{ $github | quote }} email_work = {{ $email_work | quote }}
github_personal = {{ $github_personal | quote }}
github_work = {{ $github_work | quote }}

View file

@ -1,9 +1,5 @@
{{- if ne .hosttype "work" }} {{- if ne .hosttype "work" }}
.zshklaviyo .zshklaviyo
{{- end }} {{- end }}
.ssh/id_rsa_work
.ssh/id_rsa_personal
.ssh/id_rsa_work.pub
.ssh/id_rsa_personal.pub
work_paths work_paths
work_packages work_packages

View file

@ -0,0 +1,5 @@
[user]
email = {{ .email_work }}
[core]
sshCommand = "ssh -i ~/.ssh/id_rsa_work"

View file

@ -1,9 +1,8 @@
[include] [include]
path = /opt/local/share/git-delta/themes.gitconfig path = /opt/local/share/git-delta/themes.gitconfig
[user] [user]
name = {{ .name }} name = {{ .name }}
email = {{ .email }} email = {{ .email_personal }}
[core] [core]
editor = hx editor = hx
pager = delta pager = delta
@ -62,3 +61,6 @@
rebase = true rebase = true
[init] [init]
defaultBranch = main defaultBranch = main
[includeIf "gitdir:~/Klaviyo/"]
path = ~/.gitconfig-work

View file

@ -1,5 +1,5 @@
# {{ .name }} # {{ .name }}
# {{ .email }} # {{ .email_personal }}
# 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,9 +1,9 @@
[user] [user]
name = {{ .name | quote }} name = {{ .name | quote }}
email = {{ .email | quote }} email = {{ .email_personal | quote }}
[git] [git]
push-bookmark-prefix = "202501_{{ .github }}_jj_" push-bookmark-prefix = "{{ .github_personal }}_jj_"
private-commits = "description(glob:'private:*')" private-commits = "description(glob:'private:*')"
[revset-aliases] [revset-aliases]
@ -27,3 +27,10 @@ diff-args = [
"--syntax-theme", "base16", "--syntax-theme", "base16",
"$left", "$right", "$left", "$right",
] ]
[[--scope]]
--when.repositories = ["~/Klaviyo"]
[--scope.user]
email = {{ .email_work | quote }}
[--scope.git]
push-bookmark-prefix = "202501_{{ .github_work }}_jj_"

View file

@ -0,0 +1,77 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB2dTJtOXhNTXRJSW5XaVk2
cVFrZlg1bkEvWk0zMEpVTnVIQXZtYWhlRmdVCkFOTDljY3l3dVF6eitzTTZEYk9T
L2V6cWJPQnRnaGRMMkI4Q0I4K1M2bFkKLS0tIEpDQ2hKYWVPS3hvbkt3NDJuTmpa
Z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HpGDNFGHaJRIKse0W1hNPZ5rj8daJj1
f8eIcfZ4fcIAgci3Je5PZHdErEnhU2LsvTEeGuINdNjiEpV+YqMEhZlKE2h0sdeF
oYRQt8enCCqFEizMTm1CQRcix7WYLx2CCJEbH8jnDlnlJnNRQ4utHA+q8c0ERndz
iDtgbjhktDgNRtXx/gvf9Fu1Jh4fHz2brFTIeuI27hy9OmtcNF5Z2U+86K3QkGyr
Dp3NFQUXlkv5NLDeCACbsqE99BBfczhliVFCeR1WaUtriNbXkzO17KDy7vI7XUwb
+V4OW7y5+2v4UQX4GbhViUSioxIfjil5NHXYIXIhlk2QB50odvbkfhfEboir0+vC
fx1+9SzZB+Krp+/29u+mN357OSRTWMkZephjUCPP42rOqe+WYFBVLQJ60JAHsyye
Vb9ge7FPCHHO7TmzD2a5rWU3u0Mzh5l8x0KoVoaP7PZnmQmFJ8TdRAGaMowH/Ej+
IiHbStLtMqLpRtHMou5+wC+oIJW6mgJCS8m+dJPG522xHpDnTmg3rHRax771i9SP
fpL9OPDcqCQABCU8iTL1K/iisj/1+0sjV3ojBZb6FTk14rrJyCes6BgVU46Yr19T
i52qXa5Pq0i1V4Md72ucws8Y7qaOjkNd/5Zrzy/7qOh7Iuv1fLo=
-----END AGE ENCRYPTED FILE-----

View file

@ -1,5 +0,0 @@
{{- if eq .hosttype "work" -}}
{{ join .chezmoi.sourceDir "private_dot_ssh/encrypted_id_rsa_work.pub.age" | include | decrypt }}
{{- else -}}
{{ join .chezmoi.sourceDir "private_dot_ssh/encrypted_id_rsa_personal.pub.age" | include | decrypt }}
{{- end -}}

View file

@ -1,5 +0,0 @@
{{- if eq .hosttype "work" -}}
{{ join .chezmoi.sourceDir "private_dot_ssh/encrypted_private_id_rsa_work.age" | include | decrypt }}
{{- else -}}
{{ join .chezmoi.sourceDir "private_dot_ssh/encrypted_private_id_rsa_personal.age" | include | decrypt }}
{{- end -}}