aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2024-10-20 00:13:44 +1300
committerTom Ryder <tom@sanctum.geek.nz>2024-10-20 12:44:57 +1300
commit3bef684e25c195744322df4344166f99cc603443 (patch)
treeb9b57c1679d257a4284cbb2e08e903870099317c /less
parentRemove truetype font settings for Xterm (diff)
downloaddotfiles-3bef684e25c195744322df4344166f99cc603443.tar.gz
dotfiles-3bef684e25c195744322df4344166f99cc603443.zip
Restore less(1) config
But don't bother with lesskey at all anymore.
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