refactor work handling
This commit is contained in:
parent
7f09b9fab4
commit
4a65f1304f
8 changed files with 30 additions and 98 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue