]> git.madduck.net Git - etc/less.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

initial checkin
authormartin f. krafft <madduck@madduck.net>
Sun, 29 Dec 2019 20:01:24 +0000 (09:01 +1300)
committermartin f. krafft <madduck@madduck.net>
Sun, 29 Dec 2019 20:02:43 +0000 (09:02 +1300)
.config/lesskey [new file with mode: 0644]
.config/vcsh/hooks-available/less.update [new file with mode: 0755]
.config/vcsh/hooks-enabled/less.post-clone [new symlink]
.config/vcsh/hooks-enabled/less.post-enter [new symlink]
.config/vcsh/hooks-enabled/less.post-pull [new symlink]
.config/vcsh/hooks-enabled/less.post-run [new symlink]
.gitignore.d/less
.less [new symlink]
.var/less/.gitignore [new file with mode: 0644]

diff --git a/.config/lesskey b/.config/lesskey
new file mode 100644 (file)
index 0000000..1767035
--- /dev/null
@@ -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 (executable)
index 0000000..d16e744
--- /dev/null
@@ -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 (symlink)
index 0000000..8faa946
--- /dev/null
@@ -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 (symlink)
index 0000000..8faa946
--- /dev/null
@@ -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 (symlink)
index 0000000..8faa946
--- /dev/null
@@ -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 (symlink)
index 0000000..8faa946
--- /dev/null
@@ -0,0 +1 @@
+../hooks-available/less.update
\ No newline at end of file
index 8ad1e7c8fb69d21bc5fee49a5830a5565eeeeca8..69db035a4576b16eb2b7b1a8505262966236cc30 100644 (file)
@@ -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 (symlink)
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 (file)
index 0000000..72e8ffc
--- /dev/null
@@ -0,0 +1 @@
+*