Last Updated: February 25, 2016
·
767
· watsoncj

Smarter GNU Less Defaults

Disable long line folding with the -S flag or use -S<ENTER> inside less.

Enable color with the -R flag or use -R<ENTER> inside less.

Use these flags by default:

echo "#env" >> ~/.lesskey
echo "LESS = -S -R" >> ~/.lesskey
lesskey