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

Click here to return to the '10.4: Use Preview to view formatted man pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Preview to view formatted man pages
Authored by: Wetzel on Jan 02, '06 03:41:05PM

from looking at the hints and comments, here's a streamlined version you can just put in your .profile or .bash_profile:

pman() {
man -t "$@" | ps2pdf - - | open -f -a Preview

you'll need to install the "ghostscript" package from fink or darwinports, because apple's pstopdf won't output to a pipe and Preview takes way too long to convert postscript to pdf -- ps2pdf is almost instantaneous.

[ Reply to This | # ]