From 799b7cf1bdf1215b2f21a85e9e3ea38846767d8a Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 30 Dec 2019 09:01:24 +1300 Subject: [PATCH] initial checkin --- .config/lesskey | 3 +++ .config/vcsh/hooks-available/less.update | 4 ++++ .config/vcsh/hooks-enabled/less.post-clone | 1 + .config/vcsh/hooks-enabled/less.post-enter | 1 + .config/vcsh/hooks-enabled/less.post-pull | 1 + .config/vcsh/hooks-enabled/less.post-run | 1 + .gitignore.d/less | 8 ++++++++ .less | 1 + .var/less/.gitignore | 1 + 9 files changed, 21 insertions(+) create mode 100644 .config/lesskey create mode 100755 .config/vcsh/hooks-available/less.update create mode 120000 .config/vcsh/hooks-enabled/less.post-clone create mode 120000 .config/vcsh/hooks-enabled/less.post-enter create mode 120000 .config/vcsh/hooks-enabled/less.post-pull create mode 120000 .config/vcsh/hooks-enabled/less.post-run create mode 120000 .less create mode 100644 .var/less/.gitignore 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 @@ +* -- 2.39.5