You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add -FX flags to the pager so that less doesn't clear the screen for a short diff and doesn't wait for the user to press Q to return to the shell
-F makes less return immediately if the content fits on the screen. Without this you need to press Q to get back to your shell even if the diff was only a few lines long
-X prevent less from clearing the screen at the beginning. Which is undesirable if the content fits on one screen and unnecessary if the content is longer than a screen.
And the -R flag (not added by this PR) displays colors correctly instead of outputting as ASCII representation of the control chars
0 commit comments