From a9ed7c66dd548b98b379f477bf680f1e9d8afa2c Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 21 Jan 2024 20:09:07 +0100 Subject: fix(hm/conf/less): Correctly export less variables --- hm/soispha/conf/less/default.nix | 7 +++---- hm/soispha/conf/less/env.less | 5 +++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'hm') diff --git a/hm/soispha/conf/less/default.nix b/hm/soispha/conf/less/default.nix index 75928bc8..1d598995 100644 --- a/hm/soispha/conf/less/default.nix +++ b/hm/soispha/conf/less/default.nix @@ -1,16 +1,15 @@ {config, ...}: { home.sessionVariables = { PAGER = "less"; - MANPAGER = "less -Db+r -Du+b"; + MANPAGER = "less --color=d+r --color=u+b"; }; programs.less = { enable = true; keys = builtins.readFile ./command.less - + builtins.readFile - ./line-edit.less + + builtins.readFile ./line-edit.less + builtins.readFile ./env.less - # This next line *must* be under `./env.less` as it adds to the definitions + # This next line *must* be under the `./env.less` include, as it extends the environment definitions + '' LESSHISTFILE = ${config.xdg.dataHome}/less/history ''; diff --git a/hm/soispha/conf/less/env.less b/hm/soispha/conf/less/env.less index 87c5d4ff..2d4f87e3 100644 --- a/hm/soispha/conf/less/env.less +++ b/hm/soispha/conf/less/env.less @@ -1,4 +1,5 @@ #env -LESSHISTSIZE=10000 -LESS = "-R --use-color --incsearch --modelines=2 --save-marks --wordwrap --status-line"; +LESSHISTSIZE = 10000 +LESS = -R --use-color --incsearch --modelines=2 --save-marks --wordwrap --status-line + # LESSHISTFILE is added in the nix file -- cgit 1.4.1