mirror of
https://github.com/akelge/vim
synced 2025-07-07 15:29:07 +00:00
Added support for lesspipe and lesspipe.sh under OSX
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user