Return to Snippet

Revision: 14483
at June 5, 2009 05:43 by AzizLight


Updated Code
# Open a manpage in Preview, which can be saved to PDF
pman()
{
   man -t "${1}" | open -f -a /Applications/Preview.app
}

Revision: 14482
at June 5, 2009 05:39 by AzizLight


Initial Code
# Open a manpage in Preview, which can be saved to PDF
pman()
{
   man -t "${1}" | open -f -a /Applications/Preview.app
}

Initial URL


Initial Description
I did write this snippet, I found it somewhere on the internet (I think I found it in a .bash_profile file in [dotfiles.org](http://www.dotfiles.org/)

Paste this code at the end of your .bash_profile file and the use it instead of man if you want to read some manpages in Preview.app (and eventually print the manpages or save them as a PDF file)

Initial Title
Open a manpage in Preview.app

Initial Tags
textmate, mac, osx

Initial Language
Other