From 8dc80cf500a93f4026015877768621d1dc20ac33 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 12 May 2016 17:46:07 +0100 Subject: [PATCH] Use diff-so-fancy --- gitconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gitconfig b/gitconfig index 343bcda..1ba6c61 100644 --- a/gitconfig +++ b/gitconfig @@ -12,6 +12,14 @@ # Detect whitespace errors when applying a patch whitespace = fix +[color "diff-highlight"] + + # Colours for `diff-so-fancy` + oldNormal = "red bold" + oldHighlight = "red bold 52" + newNormal = "green bold" + newHighlight = "green bold 22" + [filter "lfs"] # git-lfs stuff @@ -28,3 +36,9 @@ # Automatically correct typos in commands autocorrect = 1 + +[pager] + + # Make diff-so-fancy apply all the time + diff = "diff-so-fancy | less --tabs=4 -RFX" + show = "diff-so-fancy | less --tabs=4 -RFX"