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: mayo2ca on Dec 30, '05 05:19:29PM

The exclamation mark (!) should be escaped in order for this to work properly, otherwise the previous event will be substituted, so it should be:
alias pman "man -t \!:* | open -f -a Preview"
Also, it's nicer to specify just the app name for people who like to organize their Application folders and for portability.

If you want the output in font other than Times New, use
alias pman "man -w \!:* | xargs /usr/bin/groff -T ps -mandoc -f H | open -f -a Preview"

H as in Helvetica. C would output it in Courier. To check out the fonts available to groff run:
grep internalname /usr/share/groff/1.19.1/font/devps/*

the font name is the first character of the filename. It's possible to convert trutype fonts from the system's fonts directory, but that's outside of the scope here. Have fun with google. It's multistep process requiring bunch of utilities not installed on OSX out of the box (or at all), so I won't go into the details.

regards,
m



[ Reply to This | # ]