]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/blobdiff - programs/less.json
From the depths (#489)
[xdg-ninja.git] / programs / less.json
index 2f0fb8b2b8250caa2c97aa815d5e0a9ce89ea142..2eedd46f6986add1ca25602b63af75bf13fc9ead 100644 (file)
@@ -1,10 +1,15 @@
 {
 {
-    "name": "less",
     "files": [
         {
     "files": [
         {
-            "path": "${HOME}/.lesshst",
-            "moveable": true,
-            "help": "Export the following environment variables:\n\n```bash\nexport LESSHISTFILE=${XDG_CACHE_HOME}/less/history\n```\n"
+            "path": "$HOME/.lesshst",
+            "movable": true,
+            "help": "Supported by default since **less** version 598. You can check your version with the following command:\n\n```bash\nless --version\n```\n\nIf your version is **not lower** than that, you can move the file to _$XDG_STATE_HOME/lesshst_.\n\n\nIf your version is **lower** than that, you need to export the following environment variables first:\n\n```bash\nexport LESSHISTFILE=\"${XDG_STATE_HOME}\"/lesshst\n```\n\nThen move the file.\n"
+        },
+        {
+            "path": "$HOME/.lesskey",
+            "movable": true,
+            "help": "Supported by default since **less** version 590. You can check your version with the following command:\n\n```bash\nless --version\n```\n\nIf your version is **not lower** than that, you can move the file to _$XDG_CONFIG_HOME/lesskey_.\n\n\nIf your version is **lower** than that, you need to export the following environment variables first:\n\n```bash\nexport LESSKEYIN=\"${XDG_CONFIG_HOME}\"/lesskey\n```\n\nThen move the file.\n"
         }
         }
-    ]
+    ],
+    "name": "less"
 }
 }