Further templating and abstracting details

This commit is contained in:
Alex Kelly 2021-06-01 15:49:42 -04:00
parent 02334303b1
commit 417905618a

View file

@ -1,45 +1,45 @@
[core] [core]
editor = vim editor = vim
quotepath = false quotepath = false
pager = delta pager = delta
[alias] [alias]
st = status st = status
ci = commit ci = commit
br = branch br = branch
co = checkout co = checkout
df = diff df = diff
lg = log -p lg = log -p
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
[credential] [credential]
helper = cache --timeout=3600 helper = cache --timeout=3600
[push] [push]
default = simple default = simple
[github] [github]
user = {{ (index (lastpass "github_token") 0).username | quote }} user = {{ (index (lastpass "github_token") 0).username | quote }}
token = {{ (index (lastpass "github_token") 0).password | quote }} token = {{ (index (lastpass "github_token") 0).password | quote }}
[diff] [diff]
tool = meld tool = meld
[difftool] [difftool]
prompt = false prompt = false
[color] [color]
ui = auto ui = auto
[filter "lfs"] [filter "lfs"]
clean = git-lfs clean -- %f clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
process = git-lfs filter-process process = git-lfs filter-process
required = true required = true
[pull] [pull]
rebase = false rebase = false
[user] [user]
name = {{ .contact.work.name }} name = {{ .gitconfig.work.name }}
email = {{ .contact.work.email }} email = {{ .gitconfig.work.email }}
[includeIf "gitdir:~/projects/arachnitech/"] [includeIf "gitdir:~/projects/{{- .gitconfig.home.config }}/"]
path = ~/.gitconfig-arachnitech path = ~/.gitconfig-{{- .gitconfig.home.config }}
[includeIf "gitdir:~/projects/franklin/"] [includeIf "gitdir:~/projects/{{- .gitconfig.work.config }}/"]
path = ~/.gitconfig-franklin path = ~/.gitconfig-{{- .gitconfig.work.config }}
[init] [init]
defaultBranch = main defaultBranch = main
[delta] [delta]
plus-style = "syntax #012800" plus-style = "syntax #012800"
minus-style = "syntax #340001" minus-style = "syntax #340001"