mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 16:27:03 +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:
parent
8834df4317
commit
4089e85018
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue