Dotfiles/site-modules/core/templates/git/gitconfig.erb
Ade Attwood 404df4b3db feat(git): move to delta diff for diff in the terminal
Now when using git diff it will use delta for a much nicer diff format. This is
set for the show and log commands too.

See: https://github.com/dandavison/delta
2021-11-21 10:52:35 +00:00

33 lines
742 B
Text

<%- $file = __FILE__ -%>
<%- $comment = '#' -%>
<%= scope.call_function('template', ["core/header.erb"]) %>
[user]
email = <%= scope.call_function('lookup', ["email"]) %>
name = <%= scope.call_function('lookup', ["user_name"]) %>
[core]
editor = $ZSH/plugins/emacs/emacsclient.sh -nw
autocrlf = input
[rerere]
enabled = true
[pager]
diff = delta --light
log = delta --light
reflog = delta --light
show = delta --light
[interactive]
diffFilter = delta --light --color-only
[delta]
line-numbers = true
navigate = true
hunk-header-style = raw
hunk-header-decoration-style = ul
file-modified-label = "modified:"
file-removed-label = "removed:"
file-added-label = "added:"
file-renamed-label = "renamed:"