1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 08:17:01 +00:00

environment.nix: Split "less -R" into PAGER and LESS

Setting `PAGER="less -R"` relies on word splitting to work out properly.
Less also reads options from from a variable named `LESS`, by setting
`PAGER="less"` and `LESS="-R"` we don't have to rely on word splitting.
This commit is contained in:
toonn 2021-01-27 22:02:51 +01:00
parent 8834df4317
commit 4089e85018
No known key found for this signature in database
GPG key ID: A1756943D328A924

View file

@ -173,7 +173,8 @@ in
XDG_CONFIG_DIRS = map (path: path + "/etc/xdg") cfg.profiles;
XDG_DATA_DIRS = map (path: path + "/share") cfg.profiles;
EDITOR = mkDefault "nano";
PAGER = mkDefault "less -R";
PAGER = mkDefault "less";
LESS = mkDefault "-R";
};
system.path = pkgs.buildEnv {