Quantcast
Channel: Why is less being run unnecessarily by git? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by QIS for Why is less being run unnecessarily by git?

$
0
0

You can set the following:

git config --global core.pager 'less -FRX'

This will ensure that less will

  • Exit if the entire file can be displayed on the first screen (F)
  • Output the raw control characters for terminal formatting (R)
  • Chop long lines (S)
  • Don't send the init/de-init strings to the terminal - avoids clearing the screen on exit (X)

Edit: Removed the S option based on Peter A. Scheider's comment


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>