mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
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.
12 lines
145 B
Nix
12 lines
145 B
Nix
{ lib }:
|
|
|
|
{
|
|
diffPagerConfig = pagerCommand: {
|
|
pager = lib.genAttrs [
|
|
"diff"
|
|
"log"
|
|
"show"
|
|
] (_: pagerCommand);
|
|
};
|
|
}
|