Skip to content

Instantly share code, notes, and snippets.

@ericdke
Created January 26, 2014 16:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdke/8635357 to your computer and use it in GitHub Desktop.
Save ericdke/8635357 to your computer and use it in GitHub Desktop.
Read `man` page in Preview.app
# read man page in preview app
function pman () {
man -t $@ | open -f -a /Applications/Preview.app
}
@ericdke
Copy link
Author

ericdke commented Jan 26, 2014

  1. Put this snippet in your ~/.bashrc or ~/.zshrc
  2. Relaunch console/terminal or do source ~/.your_rc_file
  3. Type pman some_command instead of man some_command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment