]> git.madduck.net Git - etc/zsh.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:

factor pager variables to separate file
authormartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 16:39:55 +0000 (17:39 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 16:39:55 +0000 (17:39 +0100)
.zsh/zshenv/80_pagers [new file with mode: 0644]
.zsh/zshrc/99_TODO

diff --git a/.zsh/zshenv/80_pagers b/.zsh/zshenv/80_pagers
new file mode 100644 (file)
index 0000000..5db7efc
--- /dev/null
@@ -0,0 +1,18 @@
+# zshenv/80_pagers
+#
+# set a number of default variables related to pagers
+#
+# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: http://git.madduck.net/v/etc/zsh.git
+#
+
+eval `lesspipe 2>/dev/null`
+export LESS="--quit-if-one-screen --hilite-search --jump-target=.5"
+LESS="$LESS --SILENT --hilite-unread"
+
+export LESSHISTFILE=~/.var/less/history
+[[ -d ${LESSHISTFILE%/*} ]] || mkdir --parent ${LESSHISTFILE%/*}
+
+# vim:ft=zsh
index 640e54c090f66ededa12cc41a7069f8dd7ac84fa..82fb2452083d37e4bf59033011743c2d4b3cb994 100644 (file)
@@ -46,8 +46,6 @@ setopt no_beep
 
 [ "$(umask)" = 022 ] && umask 0077
 
-eval `lesspipe 2>/dev/null`
-
 WORDCHARS="*?_-.[]~/&;!#$%^(){}<>"
 
 # report time stats when command takes longer than 5 seconds