From 6009b413500749a3ce705da4428d070dfe895420 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 9 Nov 2023 12:09:03 -0800 Subject: [PATCH] Update git config when delta is installed --- dot_config/git/config.tmpl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dot_config/git/config.tmpl b/dot_config/git/config.tmpl index 29f4c54..bc2bdff 100644 --- a/dot_config/git/config.tmpl +++ b/dot_config/git/config.tmpl @@ -8,6 +8,20 @@ quotepath = false commitGraph = true logallrefupdates = true +#{{- if lookPath "delta" }}# + pager = delta + +[interactive] + diffFilter = delta --color-only + +[delta] + navigate = true # use n and N to move between diff sections + light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal) + line-numbers = true + +[merge] + conflictstyle = diff3 +#{{- end }}# [color] branch = auto @@ -58,6 +72,9 @@ [push] default = simple +[pull] + rebase = false + [init] defaultBranch = main @@ -75,6 +92,9 @@ [diff] algorithm = histogram +#{{- if lookPath "delta" }}# + colorMoved = default +#{{- end }}# [safe] directory = *