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


Click here to return to the 'Yet another way to read beautifully formatted man pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Yet another way to read beautifully formatted man pages
Authored by: eengstrom on May 20, '09 04:32:20PM
As has been commented, this won't work when not online, but it also wont work for non Apple hosted man pages, such as those from MacPorts or Fink or anything else. Combining the ideas from the various other hints, here is a function I came up with to do it locally for any man page:

    hman() { man -w "$@" \
              && man -w "$@" | xargs zcat -fc | groff -Thtml -man > "/tmp/man-${!#}.html" \
              && open "/tmp/man-${!#}.html"; }
I know I call man -w twice, but that's to avoid any temporary variables - YMMV.

[ Reply to This | # ]