Skip to content
Browse files

Function for opening man pages in preview

  • Loading branch information...
1 parent 1a4bd51 commit 7cc16669e83362cf91c11157f3de61b3efb03191 @stianeikeland committed Apr 3, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 bash/aliases.bash
View
8 bash/aliases.bash
@@ -48,4 +48,10 @@ alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pa
# All the dig info
function digga() {
dig +nocmd "$1" any +multiline +noall +answer
-}
+}
+
+# Open man page in preview
+function pman() {
+ man -t "${1}" | open -f -a Preview
+}
+

0 comments on commit 7cc1666

Please sign in to comment.
Something went wrong with that request. Please try again.