1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 16:18:00 +00:00

zprofile: Don't exit 'less' when everything fits the screen

This aligns better with default `less` behavior and allows for
'growable content' when `less` is used as a substitute for `tail`.
This commit is contained in:
Indrajit Raychaudhuri 2021-05-09 00:23:23 -05:00 committed by Indrajit Raychaudhuri
parent fae5e493ec
commit 6c5657be8e

View File

@ -53,8 +53,8 @@ path=(
# Set the default Less options. # Set the default Less options.
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing). # Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
# Remove -X and -F (exit if the content fits on one screen) to enable it. # Remove -X to enable it.
export LESS='-F -g -i -M -R -S -w -X -z-4' export LESS='-g -i -M -R -S -w -X -z-4'
# Set the Less input preprocessor. # Set the Less input preprocessor.
# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system. # Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.