Posted By

AzizLight on 06/05/09


textmate mac osx preview man

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Open a manpage in

 / Published in: Other

I did write this snippet, I found it somewhere on the internet (I think I found it in a .bash_profile file in

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 (and eventually print the manpages or save them as a PDF file)

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

Report this snippet  


RSS Icon Subscribe to comments
Posted By: stiobhart on June 14, 2009

brilliant! - thanks for this. it works a treat

You need to login to post a comment.