From 826db6d2ded7bb5053c0dfc40e44d02cd4aae260 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 10 Oct 2019 21:07:15 +0200 Subject: [PATCH] [ADD][GIT] Better diff colors I like having some colors for the meta-information shown during diff operations. Using the `diff-hightlight` script, you can get character-level highlights of your diffs (just like GitHub and GitLab). --- git/.gitconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/git/.gitconfig b/git/.gitconfig index 26525f7..1b76298 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -17,6 +17,23 @@ [rebase] autoSquash = true autoStash = true +[pager] + diff = /usr/share/git/diff-highlight/diff-highlight | less + log = /usr/share/git/diff-highlight/diff-highlight | less + show = /usr/share/git/diff-highlight/diff-highlight | less +[color "diff"] + commit = yellow + meta = yellow + frag = cyan + old = red + new = green + whitespace = red reverse +[color "diff-highlight"] + oldNormal = red bold + oldHighlight = red bold 52 + newNormal = green bold + newhighlight = green bold 22 + [user] email = bruno.belanyi@epita.fr name = Bruno BELANYI