From 6fa98d21021127780f09dcae2925c806665fd1dd Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Sun, 13 Nov 2011 00:16:32 +0800 Subject: [PATCH] If "most" is +x then set most as PAGER, or use less as PAGER --- .bashrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 8c33974..ee9f36b 100644 --- a/.bashrc +++ b/.bashrc @@ -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 #