From bf6e29669ea510d34796f9518972ad8960a4842f Mon Sep 17 00:00:00 2001 From: xunuwu Date: Thu, 23 Jan 2025 08:44:37 +0100 Subject: [PATCH] fix colours in 'less' --- sys/profiles/programs/zsh.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/profiles/programs/zsh.nix b/sys/profiles/programs/zsh.nix index 0ca9f51..7dc69b5 100644 --- a/sys/profiles/programs/zsh.nix +++ b/sys/profiles/programs/zsh.nix @@ -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 = {