在中打开手册页预览.app

【在中打开手册页预览.app】智慧并不产生于学历,而是来自对于知识的终生不懈的追求。这篇文章主要讲述在中打开手册页预览.app相关的知识,希望能为你提供帮助。
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)

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


    推荐阅读