Mandoc -T pdf "$(/usr/bin/man -w )" | open -fa PreviewĪrmin Briegel posted the above solution on his blog, Scripting OS X. The replacement function for my old pman command looks like this: function pman() There are two solutions for this, one that relies on an external package (which is the solution I found), and another using only macOS' built-in tools (which I found just after finishing this writeup). profile file, was very simple: # Open man pages in Previewīut this now fails because Preview won't parse the PostScript file. This function opens the specified command's man page in Preview, nicely formatted using PostScript. Whatever the reason, this change broke one of my most-used Terminal functions: Apple hasn't explained why they've made this change, but many think it's due to possible security issues with PostScript files. One major change in macOS Ventura is that Preview can no longer display PostScript files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |