about summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-21 20:09:07 +0100
committerSoispha <soispha@vhack.eu>2024-01-21 20:09:07 +0100
commita9ed7c66dd548b98b379f477bf680f1e9d8afa2c (patch)
tree3edb4c11fac2c9388eb26810582eafef43e5192c /hm
parentfix(sys/nixpkgs/yt): Ensure that the downloader downloads everything (diff)
downloadnixos-config-a9ed7c66dd548b98b379f477bf680f1e9d8afa2c.tar.gz
nixos-config-a9ed7c66dd548b98b379f477bf680f1e9d8afa2c.zip
fix(hm/conf/less): Correctly export less variables
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/less/default.nix7
-rw-r--r--hm/soispha/conf/less/env.less5
2 files changed, 6 insertions, 6 deletions
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