Created
July 3, 2020 15:01
-
-
Save ahmadawais/2028433732418235da5e2d3a29530db7 to your computer and use it in GitHub Desktop.
manpdf opens man pages as PDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open man page as PDF. | |
# USAGE: manpdf cat | |
function manpdf() { | |
man -t "${1}" | open -f -a /Applications/Preview.app/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add /System before /Applications in Big Sur
man -t "${1}" | open -f -a /System/Applications/Preview.app/