mirror of https://github.com/akelge/zsh
Added support for lesspipe and lesspipe.sh under OSX
This commit is contained in:
parent
bc5ab5959c
commit
5b2102cebb
15
zshrc
15
zshrc
|
@ -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
|
LESSCHARSET=utf-8
|
||||||
READNULLCMD=/usr/bin/less
|
READNULLCMD=/usr/bin/less
|
||||||
PAGER=/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
|
EDITOR=vi
|
||||||
|
@ -171,6 +165,15 @@ if [ `uname -s` = "Darwin" ]; then
|
||||||
fi
|
fi
|
||||||
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
|
# Process Local file
|
||||||
for localDir in /etc/zsh /etc /usr/local/etc /usr/local/etc/zsh; do
|
for localDir in /etc/zsh /etc /usr/local/etc /usr/local/etc/zsh; do
|
||||||
if [ -f ${localDir}/zshrc.local ]; then
|
if [ -f ${localDir}/zshrc.local ]; then
|
||||||
|
|
Loading…
Reference in New Issue