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: kaih on May 14, '09 04:37:58PM
And if we need any more evidence that there is more than one way to do things, here's what I have in my .bashrc:

function niceman { man -t $@ | open -f -a Preview.app; }

This makes man output PostScript and Preview will convert it to a PDF. On large man pages it may take a few seconds, but on small ones it's nice and quick. All the formatting comes through looking very good.

As an example, I timed "niceman bash" from the time I hit enter to the time I saw the PDF open in Preview - it took around 5 seconds to generate a 64-page PDF.

---
k:.

[ Reply to This | # ]