From 19c9520f759c22b06a929c32c5ee098972aa73b7 Mon Sep 17 00:00:00 2001 From: fleaz Date: Fri, 28 Apr 2023 14:16:57 +0200 Subject: [PATCH] home/git: Only open big diffs in a pager Small diffs (less than one screen) get just printed to the terminal --- home-manager/modules/git.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home-manager/modules/git.nix b/home-manager/modules/git.nix index 020f42d..a11f161 100644 --- a/home-manager/modules/git.nix +++ b/home-manager/modules/git.nix @@ -15,6 +15,9 @@ signByDefault = true; }; extraConfig = { + "core" = { + pager = "less -F -X"; + }; "init" = { defaultBranch = "main"; };