Setting `core.pager` may result in issues like swallowed `git grep` results. To avoid this, apply pagers to specific commands where we expect `diff`-ish output only. Use a common helper to set pager for all modules that configure it.
11 lines
145 B
Nix
11 lines
145 B
Nix
{ lib }:
|
|
|
|
{
|
|
diffPagerConfig = pagerCommand: {
|
|
pager = lib.genAttrs [
|
|
"diff"
|
|
"log"
|
|
"show"
|
|
] (_: pagerCommand);
|
|
};
|
|
}
|