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


Click here to return to the 'Where to put the less -S flag' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Where to put the less -S flag
Authored by: arekkusu on Jan 21, '05 02:11:40PM

But, it is only set to less if it is undefined. What if you normally have it set to something else, like 'less -ERmX~'?



[ Reply to This | # ]
Where to put the less -S flag
Authored by: gshenaut on Jan 21, '05 04:12:09PM
Yeah, it's kind of an endless loop, isn't it? Well, you could put an "apropos" shim like this into your personal bin directory:
#!/bin/sh
PAGER="less -xxxS"; export PAGER
exec /usr/bin/apropos $*
so that the PAGER definition is overridden. I still think the original file should be changed by adding the -S to its default PAGER definition. (The "xxx" gets replaced with whatever your other less preferences are.)

Greg Shenaut

[ Reply to This | # ]