2

I use

less -XFR +G

to page some variations of git log, and all four options are important.

The thing I don't like is that it fills the screen with empty lines (marked with ~) when the log/file is shorter than a screen. The issue comes as a consequence of using -F and +G together.

The shorter repro steps that I could find are the following:

echo -e 'one\ntwo\nthree' | less -F +G

I would like the command to behave just like it was not there if the file fits the page.

xhienne
  • 5,738
  • 1
  • 15
  • 34
Enlico
  • 23,259
  • 6
  • 48
  • 102

0 Answers0