[UPDATE][SHELL] Export default pager

I also added the '-+X' flag to `less` default options to make it clear the
screen on exit.
This commit is contained in:
Bruno BELANYI 2019-10-02 17:46:18 +02:00
parent 5f3825982a
commit 0f4d67278c

View file

@ -16,8 +16,10 @@ export RANGER_LOAD_DEFAULT_RC=FALSE
[ -e "$DIR_COLORS" ] || DIR_COLORS="" [ -e "$DIR_COLORS" ] || DIR_COLORS=""
eval "`dircolors -b $DIR_COLORS`" eval "`dircolors -b $DIR_COLORS`"
# Allow for colorful man pages # Use less as my default pager
export LESS=-R export PAGER=less
# Allow for colorful man pages, clear the screen on exit
export LESS='-R -+X'
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink