From: martin f. krafft Date: Sun, 29 Dec 2019 20:01:24 +0000 (+1300) Subject: initial checkin X-Git-Url: https://git.madduck.net/etc/less.git/commitdiff_plain/799b7cf1bdf1215b2f21a85e9e3ea38846767d8a?hp=1e7becfe87e66b53fed86405d69e1e743df697fb initial checkin --- diff --git a/.config/lesskey b/.config/lesskey new file mode 100644 index 0000000..1767035 --- /dev/null +++ b/.config/lesskey @@ -0,0 +1,3 @@ +#env +LESS = --ignore-case --jump-target=.5 --hilite-unread --tabs=2 +LESSHISTFILE = $HOME/.var/less/history diff --git a/.config/vcsh/hooks-available/less.update b/.config/vcsh/hooks-available/less.update new file mode 100755 index 0000000..d16e744 --- /dev/null +++ b/.config/vcsh/hooks-available/less.update @@ -0,0 +1,4 @@ +#!/bin/sh + +echo Triggering remake of less config… >&2 +sed -e "s,\$HOME,$HOME,g" ~/.config/lesskey | lesskey -o ~/.var/less/lesskey.out - diff --git a/.config/vcsh/hooks-enabled/less.post-clone b/.config/vcsh/hooks-enabled/less.post-clone new file mode 120000 index 0000000..8faa946 --- /dev/null +++ b/.config/vcsh/hooks-enabled/less.post-clone @@ -0,0 +1 @@ +../hooks-available/less.update \ No newline at end of file diff --git a/.config/vcsh/hooks-enabled/less.post-enter b/.config/vcsh/hooks-enabled/less.post-enter new file mode 120000 index 0000000..8faa946 --- /dev/null +++ b/.config/vcsh/hooks-enabled/less.post-enter @@ -0,0 +1 @@ +../hooks-available/less.update \ No newline at end of file diff --git a/.config/vcsh/hooks-enabled/less.post-pull b/.config/vcsh/hooks-enabled/less.post-pull new file mode 120000 index 0000000..8faa946 --- /dev/null +++ b/.config/vcsh/hooks-enabled/less.post-pull @@ -0,0 +1 @@ +../hooks-available/less.update \ No newline at end of file diff --git a/.config/vcsh/hooks-enabled/less.post-run b/.config/vcsh/hooks-enabled/less.post-run new file mode 120000 index 0000000..8faa946 --- /dev/null +++ b/.config/vcsh/hooks-enabled/less.post-run @@ -0,0 +1 @@ +../hooks-available/less.update \ No newline at end of file diff --git a/.gitignore.d/less b/.gitignore.d/less index 8ad1e7c..69db035 100644 --- a/.gitignore.d/less +++ b/.gitignore.d/less @@ -1,2 +1,10 @@ * +!/.config/lesskey +!/.config/vcsh/hooks-available/less.update +!/.config/vcsh/hooks-enabled/less.post-clone +!/.config/vcsh/hooks-enabled/less.post-enter +!/.config/vcsh/hooks-enabled/less.post-pull +!/.config/vcsh/hooks-enabled/less.post-run !/.gitignore.d/less +!/.less +!/.var/less/.gitignore diff --git a/.less b/.less new file mode 120000 index 0000000..39958d5 --- /dev/null +++ b/.less @@ -0,0 +1 @@ +.var/less/lesskey.out \ No newline at end of file diff --git a/.var/less/.gitignore b/.var/less/.gitignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/.var/less/.gitignore @@ -0,0 +1 @@ +*