Added support for lesspipe and lesspipe.sh under OSX

This commit is contained in:
Andrea Mistrali 2009-10-13 10:57:42 +00:00
parent bc5ab5959c
commit 5b2102cebb
1 changed files with 15 additions and 12 deletions

15
zshrc
View File

@ -54,12 +54,6 @@ LESS="-c -x4 -R -MM -PMFile\:?f%f:STDIN. ?BSize\:?B%B:Unk.?B\:?pb%pb\%:Unk.?B\:%
LESSCHARSET=utf-8
READNULLCMD=/usr/bin/less
PAGER=/usr/bin/less
if [ -x =lesspipe ]; then
eval `lesspipe`
fi
if [ -x =lesspipe.sh ]; then
eval `lesspipe.sh`
fi
EDITOR=vi
@ -171,6 +165,15 @@ if [ `uname -s` = "Darwin" ]; then
fi
fi
LESSPIPE=`which lesspipe`
if [ $? -eq 0 ]; then
eval `$LESSPIPE`
fi
LESSPIPE=`which lesspipe.sh`
if [ $? -eq 0 ]; then
eval `$LESSPIPE`
fi
# Process Local file
for localDir in /etc/zsh /etc /usr/local/etc /usr/local/etc/zsh; do
if [ -f ${localDir}/zshrc.local ]; then