From ec09db42e636917d81fa67ca579dff10a15988e6 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:47:57 -0500 Subject: [PATCH] use built-in git diff highlight by default --- modules/common/shell/git.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/common/shell/git.nix b/modules/common/shell/git.nix index f23608f..82b593b 100644 --- a/modules/common/shell/git.nix +++ b/modules/common/shell/git.nix @@ -28,6 +28,10 @@ in { userName = config.gitName; userEmail = config.gitEmail; extraConfig = { + core.pager = + "${pkgs.git}/share/git/contrib/diff-highlight/diff-highlight | less -F"; + interactive.difffilter = + "${pkgs.git}/share/git/contrib/diff-highlight/diff-highlight"; pager = { branch = "false"; }; safe = { directory = config.dotfilesPath; }; pull = { ff = "only"; };