From 475d9e90e29634477f7a06ed121d29260a5580a0 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Fri, 24 Jan 2025 19:10:40 -0500 Subject: [PATCH] refactor(git): clean up scroll in less fix --- homeManagerModules/shell/git/default.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/homeManagerModules/shell/git/default.nix b/homeManagerModules/shell/git/default.nix index fd7d0186..d3aa600f 100644 --- a/homeManagerModules/shell/git/default.nix +++ b/homeManagerModules/shell/git/default.nix @@ -86,17 +86,6 @@ in { diff.sopsdiffer.textconv = "sops decrypt"; - # https://github.com/dandavison/delta/issues/630#issuecomment-860046929 - pager = let - cmd = "LESS='LRc --mouse' ${pkgs.delta}/bin/delta"; - in { - diff = cmd; - show = cmd; - stash = cmd; - log = cmd; - reflog = cmd; - }; - sendemail = { smtpserver = "127.0.0.1"; smtpuser = "matt@nelim.org"; @@ -106,6 +95,9 @@ in { }; }; }; + + # https://github.com/dandavison/delta/issues/630#issuecomment-2003149860 + bash.sessionVariables.LESS = "-R --mouse"; }; # For accurate stack trace