home-manager/terminal/programs/bat: update MANPAGER to work with --help
This commit is contained in:
parent
fb51921f26
commit
cc7eec6a81
1 changed files with 13 additions and 4 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue