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


Click here to return to the 'Open formatted man pages in Preview from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open formatted man pages in Preview from the command line
Authored by: SeanAhern on May 12, '11 08:41:05AM
No need to go through all that trouble with temporary files and all. This can be done in one line (which can then be made into an alias or function in your shell):
man -t function | ps2pdf - - | open -f -a Preview

See crarko's link for more examples that include caching and such.

[ Reply to This | # ]

Open formatted man pages in Preview from the command line
Authored by: broomdodger on May 12, '11 10:25:44AM

--OR--
If you would like to read man pages within vim, add the following to your .profile:

vman() { man "$@" | col -bx | iconv -c | vim -c "set ft=man nomod nolist" -; }



[ Reply to This | # ]
need to install ps2pdf
Authored by: kipkoan on May 12, '11 12:30:45PM
You will need to install "ps2pdf" for this to work, which is included with "ghostscript". I installed it using HomeBrew:

brew install ghostscript

[ Reply to This | # ]
need to install ps2pdf
Authored by: beepotato on May 15, '11 12:23:13AM

As shown a few comments further by bglnelissen, there is actually no need for ps2pdf. Preview handles the conversion from Postscript.



[ Reply to This | # ]