From 43c394913766d4da1af7ba5d5566139687cf22b3 Mon Sep 17 00:00:00 2001 From: cswimr Date: Fri, 22 Nov 2024 09:09:58 -0500 Subject: [PATCH] set some `less`-related environment variables --- nixos/environment.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/environment.nix b/nixos/environment.nix index f072fc9..cfc8732 100644 --- a/nixos/environment.nix +++ b/nixos/environment.nix @@ -5,6 +5,12 @@ # XDG settings XDG_CONFIG_HOME = lib.mkDefault "$HOME/.config"; + + # less settings + LESS = "-R"; + # Fix unicode characters not being displayed properly in less or cat (bat) + # https://github.com/sharkdp/bat/issues/2578#issuecomment-1598332705 + LESSUTFCHARDEF = "E000-F8FF:p,F0000-FFFFD:p,100000-10FFFD:p"; }; environment.sessionVariables = {