From aa05963032c4ffe0717ee9ce356aab4e3701d527 Mon Sep 17 00:00:00 2001 From: derped Date: Wed, 21 Feb 2024 21:24:01 +0100 Subject: [PATCH] Set env to fix manpages with bat. --- config/etc.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/etc.nix b/config/etc.nix index 9c0485d..950e2cd 100644 --- a/config/etc.nix +++ b/config/etc.nix @@ -15,6 +15,9 @@ with lib; { }; environment.variables = mkIf (elem "etcvars" config.machine.conffiles) { + # Bat breaks manpages + # https://github.com/sharkdp/bat/issues/2563 + MANROFFOPT = "-c"; LC_CTYPE = "zh_CN.UTF-8"; MANPAGER = "sh -c 'col -bx | bat -l man -p'"; MPV_HOME = "/etc/mpv";