From 863fcfafc232bc6e6625c1dfcfd234e156db5406 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 20 Feb 2021 13:30:09 +0000 Subject: [PATCH] home: git: enable diff-highlight --- home/git/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/git/default.nix b/home/git/default.nix index 679b7f9..36ea50f 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -75,6 +75,16 @@ defaultBranch = "main"; }; + pager = + let + diff-highlight = "${pkgs.gitAndTools.gitFull}/share/git/contrib/diff-highlight/diff-highlight"; + in + { + diff = "${diff-highlight} | less"; + log = "${diff-highlight} | less"; + show = "${diff-highlight} | less"; + }; + pull = { # Avoid useless merge commits rebase = true;