[UPDATE][SHELL] Make less clear screen on start-up
If you don't have this option, less will just start outputting from wherever your cursor was (so the line where you were writing your command), but any movement would make it snap to the top of the terminal. This makes it clear the screen before doing its first draw, making the output systematically start from the top.
This commit is contained in:
parent
1944ed578d
commit
97c4207b38
|
@ -33,8 +33,8 @@ if { [ -n "$BASH_VERSION" ] && shopt -q login_shell; } ||
|
||||||
|
|
||||||
# Use less as my default pager
|
# Use less as my default pager
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
# Allow for colorful man pages, clear the screen on exit
|
# Allow for colorful man pages, clear the screen on start and exit
|
||||||
export LESS='-R -+X'
|
export LESS='-R -+X -c'
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue