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 = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config.theme = "base16";
|
config.theme = "base16";
|
||||||
};
|
};
|
||||||
home.sessionVariables = {
|
|
||||||
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
|
home = {
|
||||||
|
sessionVariables = {
|
||||||
|
MANPAGER = "sh -c 'col -bx | bat --language man' ";
|
||||||
MANROFFOPT = "-c";
|
MANROFFOPT = "-c";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages = with pkgs.bat-extras; [
|
||||||
|
batman
|
||||||
|
];
|
||||||
|
|
||||||
|
shellAliases.man = "batman";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue