home-manager/terminal/programs/bat: update MANPAGER to work with --help

This commit is contained in:
Anthony Rodriguez 2024-12-19 17:49:08 +01:00
parent fb51921f26
commit cc7eec6a81
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -1,10 +1,19 @@
_: {
{pkgs, ...}: {
programs.bat = {
enable = true;
config.theme = "base16";
};
home.sessionVariables = {
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
MANROFFOPT = "-c";
home = {
sessionVariables = {
MANPAGER = "sh -c 'col -bx | bat --language man' ";
MANROFFOPT = "-c";
};
packages = with pkgs.bat-extras; [
batman
];
shellAliases.man = "batman";
};
}