If "most" is +x then set most as PAGER, or use less as PAGER

This commit is contained in:
Gea-Suan Lin
2011-11-13 00:16:32 +08:00
parent b97d80766c
commit 6fa98d2102

View File

@@ -27,9 +27,15 @@ complete -c -o default -o nospace sudo
export EDITOR="vim"
export GIT_PAGER="less"
export LESS="-EfmrSwX"
export PAGER="most"
export LSCOLORS="gxfxcxdxbxegedabagacad"
export PERL_CPANM_OPT="--mirror http://cpan.nctu.edu.tw/ --mirror http://cpan.cpantesters.org/"
#
if [ -x most ]; then
export PAGER="most"
else
export PAGER="less"
fi
#
shopt -s checkwinsize
shopt -s histappend
#