If "most" is +x then set most as PAGER, or use less as PAGER
This commit is contained in:
8
.bashrc
8
.bashrc
@@ -27,9 +27,15 @@ complete -c -o default -o nospace sudo
|
|||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
export GIT_PAGER="less"
|
export GIT_PAGER="less"
|
||||||
export LESS="-EfmrSwX"
|
export LESS="-EfmrSwX"
|
||||||
export PAGER="most"
|
export LSCOLORS="gxfxcxdxbxegedabagacad"
|
||||||
export PERL_CPANM_OPT="--mirror http://cpan.nctu.edu.tw/ --mirror http://cpan.cpantesters.org/"
|
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 checkwinsize
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user