add global gitconfig and gitignore with email & name data

This commit is contained in:
2024-03-27 18:24:14 -06:00
parent da608a9d84
commit 24cf6e41af
3 changed files with 36 additions and 0 deletions

View File

@@ -3,6 +3,10 @@
{{- $osid = printf "%s-%s" .chezmoi.os .chezmoi.osRelease.id -}}
{{- end -}}
# TODO: Update email address and name
[data]
osid = {{ $osid | quote }}
email = "candrewlee14@gmail.com"
name = "Andrew Lee"

30
dot_gitconfig.tmpl Normal file
View File

@@ -0,0 +1,30 @@
[credential "https://github.com"]
helper =
helper = !~/.webman/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !~/.webman/bin/gh auth git-credential
[user]
email = {{ .email | quote }}
name = {{ .name }}
[core]
pager = delta
excludesfile = ~/.gitignore
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
# delta detects terminal colors automatically; set one of these to disable auto-detection
# dark = true
# light = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default

2
dot_gitignore Normal file
View File

@@ -0,0 +1,2 @@
.env
.DS_Store