refactor work handling

This commit is contained in:
Matthew Ryan Dillon 2025-09-23 19:15:55 -04:00
parent 7f09b9fab4
commit 4a65f1304f
8 changed files with 30 additions and 98 deletions

View file

@ -1,22 +1,16 @@
[include]
path = /opt/local/share/git-delta/themes.gitconfig
[user]
name = {{ .name }}
{{- if eq .hosttype "work" }}
email = {{ .email_work }}
{{ else }}
email = {{ .email_personal }}
{{- end }}
[core]
editor = hx
pager = delta
excludesFiles = ~/.config/git/ignore
[interactive]
diffFilter = delta --color-only
[delta]
features = chameleon
navigate = true
light = false
side-by-side = true
true-color = always
colorMoved = default
syntax-theme = base16
{{ if eq .hosttype "work" }}
sshCommand = "ssh -i ~/.ssh/id_rsa_work"
{{ end }}
[diff]
colorMoved = default
[color]
@ -63,8 +57,10 @@
[init]
defaultBranch = main
[includeIf "gitdir:~/Klaviyo/"]
path = ~/.gitconfig-work
{{- if eq .hosttype "work" }}
[includeIf "gitdir:~/projects/personal/"]
path = ~/.gitconfig-personal-override
[includeIf "gitdir:~/.klaviyocli/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/.local/share/chezmoi"]
path = ~/.gitconfig-personal-override
{{- end }}