Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stupid manpage formatting tricks

  • Loading branch information...
commit 9336c322e93fd8eaa4dfa225457137fdabe8442d 1 parent 1c286dd
@ryanfb ryanfb authored committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 06_man
View
7 06_man
@@ -0,0 +1,7 @@
+# Open manpage with Preview.app
+# Uses ps2pdf conversion because it's faster
+if [[ $OSTYPE[1,6] == "darwin" ]]; then
+ function manp () {
+ man -t $* | ps2pdf - - | open -f -a Preview
+ }
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.