From e7005539be939662ed4c80bf4baabe647aa5b6b2 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 19 Apr 2018 10:33:00 +1000 Subject: [PATCH] Enable so-fancy/diff-so-fancy and its recommended colours --- config/git/config | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/git/config b/config/git/config index c7fd796..69a8e6c 100644 --- a/config/git/config +++ b/config/git/config @@ -9,12 +9,30 @@ d = diff l = log --graph --pretty=graph --date=relative up = pull --rebase=preserve --autostash + patch = !git --no-pager diff --no-color st = status --short shove = "!f() { git push ${1:-origin} :; }; f" +[color "diff"] + meta = yellow + frag = magenta bold + commit = yellow bold + old = red bold + new = green bold + whitespace = red reverse + +[color "diff-highlight"] + oldNormal = red bold + oldHighlight = red bold 52 + newNormal = green bold + newHighlight = green bold 22 + [column] ui = auto +[core] + pager = "diff-so-fancy | less --tabs=4 -RFX" + [diff] colorMoved = true