From 24cf6e41aff60cd768d9ad38d9fc38b60f3801b0 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 27 Mar 2024 18:24:14 -0600 Subject: [PATCH] add global gitconfig and gitignore with email & name data --- .chezmoi.toml.tmpl | 4 ++++ dot_gitconfig.tmpl | 30 ++++++++++++++++++++++++++++++ dot_gitignore | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 dot_gitconfig.tmpl create mode 100644 dot_gitignore diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index a6b8e59..d35607b 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -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" diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl new file mode 100644 index 0000000..1f35970 --- /dev/null +++ b/dot_gitconfig.tmpl @@ -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 diff --git a/dot_gitignore b/dot_gitignore new file mode 100644 index 0000000..4c842e4 --- /dev/null +++ b/dot_gitignore @@ -0,0 +1,2 @@ +.env +.DS_Store \ No newline at end of file