home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / ultrix / 6937 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.5 KB

  1. Xref: sparky comp.unix.ultrix:6937 comp.lang.perl:5963
  2. Newsgroups: comp.unix.ultrix,comp.lang.perl
  3. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!malgudi.oar.net!chemabs!srv01s4!jcv26
  4. From: jcv26@cas.org (Jon Vander Hill)
  5. Subject: Re: 'less' as man pager
  6. In-Reply-To: braun@aa.cad.slb.com's message of 15 Sep 92 19:33:17 GMT
  7. Message-ID: <JCV26.92Sep15182049@jcv26aws.cas.org>
  8. Sender: usenet@cas.org
  9. Organization: Chemical Abstracts Service, Columbus, Ohio, USA
  10. References: <1992Sep2.134641.4576@Warren.MENTORG.COM>
  11.     <1992Sep15.193317.20255@aa.cad.slb.com>
  12. Date: Tue, 15 Sep 1992 23:20:49 GMT
  13. Lines: 20
  14.  
  15. In article <1992Sep15.193317.20255@aa.cad.slb.com> braun@aa.cad.slb.com (Matthew Braun) writes:
  16.  
  17.    If you don't have System adminstration power but would still like to use
  18.    less as the pager for man, you can do the following:
  19.  
  20.    have a directory in your path before /usr/ucb, e.g. ~/bin
  21.    link page to less:  cd ~/bin ; ln -s /usr/local/bin/less page
  22.    man sure it will find your page, instead of /usr/ucb's:  rehash
  23.  
  24.    This has a slight advantage over the alias man option.  When you attempt
  25.    to man something that is not found it will not run a pager program.
  26.    Where if you pipe "man <page> | less" it will always run less (then you
  27.    have to press 'q' to quit).
  28.  
  29. I believe many man's (many men?) will use a $PAGER variable
  30. if it's defined which can be set to "less".  Personally, I don't
  31. like making symlinks to circumvent my PATH if I can avoid it.
  32.  
  33. Jon Vander Hill
  34. jon@cas.org
  35.