Always pipe output of man to less
How do I always pipe the output of man to less? Currently the my man pages are formatted with more, and I always have to do the following:
Code:
man ls | less Thanks. |
Personally I'd do a shell script:
Quote:
Code:
$ chmod a+x /path/m |
Thanks that worked very nicely. :)
I was wondering if I could still use the command man. I tried renaming m to man but that didn't work out. Would aliases work? I'm not sure how, if it's even possible, to place command line arguments into aliases. |
No need for any of that.
Just set the 'PAGER' variable to 'less': $ export PAGER=less $ man man Dave |
Quote:
Code:
f () { man `echo "$1"`|less; } Err....I'm a bit Mutley-esque about this: "Thanks that worked very nicely."....:D |
All times are GMT -5. The time now is 06:28 PM. |