From: martin f. krafft Date: Fri, 9 May 2008 16:39:55 +0000 (+0100) Subject: factor pager variables to separate file X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/1a45cff1fa888f9819adc7471b0e7331916bbab1?ds=sidebyside factor pager variables to separate file --- 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