Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


less -X | 15 comments | Create New Account
Click here to return to the 'less -X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
less -X
Authored by: enigmamf on Sep 15, '04 01:58:28PM

Wow, I am bewildered -- less is so much better I can't imagine anyone wanting to use more anymore. Need to do a search? Less will highlight every result, making scanning for what you really want easier. Need to search above where you already are? Use a question mark instead of a forward slash to search backwards -- no need to bring yourself to the top of the document.

To get around the disappearing less text, I've set up the following alias:

For you firm souls who think for yourself and stick to TCSH even in the face of Apple's Bashification:
alias less less -X
or for you bash types
alias less="less -X"



[ Reply to This | # ]
less -X
Authored by: mike3k on Sep 15, '04 02:15:37PM

You can also set the environment variable LESS to force -X.

in bash, add the following to your .bashrc or .bash_profile:

export LESS='-X'



[ Reply to This | # ]