From 1a45cff1fa888f9819adc7471b0e7331916bbab1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 9 May 2008 17:39:55 +0100 Subject: [PATCH] factor pager variables to separate file --- .zsh/zshenv/80_pagers | 18 ++++++++++++++++++ .zsh/zshrc/99_TODO | 2 -- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .zsh/zshenv/80_pagers diff --git a/.zsh/zshenv/80_pagers b/.zsh/zshenv/80_pagers new file mode 100644 index 0000000..5db7efc --- /dev/null +++ b/.zsh/zshenv/80_pagers @@ -0,0 +1,18 @@ +# zshenv/80_pagers +# +# set a number of default variables related to pagers +# +# Copyright © 1994–2008 martin f. krafft +# 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 diff --git a/.zsh/zshrc/99_TODO b/.zsh/zshrc/99_TODO index 640e54c..82fb245 100644 --- a/.zsh/zshrc/99_TODO +++ b/.zsh/zshrc/99_TODO @@ -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 -- 2.39.5