NixOS should set programs.less.lessopen.default = null #309599
Labels
0.kind: enhancement
6.topic: portability
General portability concerns, not specific to cross-compilation or a specific platform
9.needs: module (update)
Issue description
When using the default pager
less
in NixOS, it is set to use a preprocessor callinglesspipe
.lesspipe
provides the following enhancements to less thus modifying less' default behavior. This behavior as a NixOS default seems unexpected.The NixOS minimal profile already has
programs.less.lessopen = mkDefault null;
: 8dfe8e4Im proposing removing any preprocessing in less by default and set
programs.less.lessopen.default = null;
Steps to reproduce
Note the output off less:
==> (lesspipe 2.10) append : to filename to view the original json file
You can disable the preprocessor by setting the following in your nix Configuration:
I also had to log out of my existing session (i3) to get my profile to update after a nixos-rebuild switch. After I can confirm
LESSOPEN
is not set in the environment:Confirm output with less:
Output is now the default of less without the preprocessor.
Technical details
The text was updated successfully, but these errors were encountered: