fix colours in 'less'

This commit is contained in:
xunuwu 2025-01-23 08:44:37 +01:00
parent 3a932e1184
commit bf6e29669e
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI

View file

@ -1,11 +1,17 @@
{
{config, ...}: {
# enable zsh autocompletion for system packages (systemd, etc)
environment.pathsToLink = ["/share/zsh"];
environment.variables."LESS" = config.programs.less.envVariables.LESS;
programs = {
less = {
enable = true;
envVariables.LESS = "--mouse";
envVariables.LESS = builtins.concatStringsSep " " [
"--mouse"
"--RAW-CONTROL-CHARS"
"--use-color"
];
};
zsh = {