aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
Diffstat (limited to 'less')
-rw-r--r--less/lesskey16
-rw-r--r--less/profile.d/less.sh5
2 files changed, 21 insertions, 0 deletions
diff --git a/less/lesskey b/less/lesskey
new file mode 100644
index 00000000..239df7b8
--- /dev/null
+++ b/less/lesskey
@@ -0,0 +1,16 @@
+#env
+
+# Search case-insensitively
+LESS += --ignore-case
+
+# Don't ring terminal bells
+LESS += --QUIET
+
+# Support mouse scrolling
+LESS += --mouse
+
+# Show ANSI colors
+LESS += --RAW-CONTROL-CHARS
+
+# Don't keep history
+LESSHISTFILE = -
diff --git a/less/profile.d/less.sh b/less/profile.d/less.sh
new file mode 100644
index 00000000..91367cc3
--- /dev/null
+++ b/less/profile.d/less.sh
@@ -0,0 +1,5 @@
+# Prompt less(1) to actually look for its config file in the paths the manual
+# says it will, as v590 on Debian v12.7 doesn't.
+#
+LESSKEYIN=${XDG_CONFIG_HOME:-$HOME/.config}/lesskey
+export LESSKEYIN