[wellylug] cat README | more ???

Grant McLean grant at mclean.net.nz
Thu Nov 4 09:01:44 NZDT 2004


On Wed, 2004-11-03 at 13:23, Simon . wrote:
> >The blatantly obvious difference between "more" and "less" is that (by
> >default) "more" leaves the text in your terminal...
> 
> export alias less='less -X'

You're better off doing:

  export LESS=-X

That way, when less is invoked directly by another program (eg: man)
it still gets your preferred options.

I also like to add:

 -i   case-insensitive pattern matches
 -Q   quiet mode - never beep
 -z-2 scrolling 2 lines less than one screen on page down/up

export LESS="-iXQ -z-2"

Grant




More information about the wellylug mailing list