about summary refs log tree commit diff stats
path: root/hm/soispha/conf/less/default.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-13 11:41:48 +0100
committerSoispha <soispha@vhack.eu>2024-01-13 11:41:48 +0100
commit4b17d3044169c1eebb93bd22f490b7f1e19d0766 (patch)
treef515fbe71b12e6427b393e977ccb0272b8ca9b4d /hm/soispha/conf/less/default.nix
parentfix(hm): Move the session variables to their associated service (diff)
downloadnixos-config-4b17d3044169c1eebb93bd22f490b7f1e19d0766.zip
feat(hm/conf/less): Configure the full lesskey file
Diffstat (limited to 'hm/soispha/conf/less/default.nix')
-rw-r--r--hm/soispha/conf/less/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/hm/soispha/conf/less/default.nix b/hm/soispha/conf/less/default.nix
index e5506fcd..c9109dd8 100644
--- a/hm/soispha/conf/less/default.nix
+++ b/hm/soispha/conf/less/default.nix
@@ -5,11 +5,14 @@
   };
   programs.less = {
     enable = true;
-    keys = ''
-      t   forw-line
-      n   back-line
-      l   repeat-search
-      L   reverse-search
-    '';
+    keys =
+      builtins.readFile ./command.less
+      + builtins.readFile
+      ./line-edit.less
+      + builtins.readFile ./env.less
+      # This next line *must* be under `./env.less` as it adds to the definitions
+      + ''
+        LESSHISTFILE = ${config.xdg.dataHome}/less/history
+      '';
   };
 }