{"id":37664,"date":"2022-11-20T14:23:11","date_gmt":"2022-11-20T19:23:11","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=37664"},"modified":"2022-11-20T14:23:11","modified_gmt":"2022-11-20T19:23:11","slug":"viewing-man-pages-on-ventura","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/11\/20\/viewing-man-pages-on-ventura\/","title":{"rendered":"Viewing man Pages on Ventura"},"content":{"rendered":"<p><a href=\"https:\/\/scriptingosx.com\/2022\/11\/on-viewing-man-pages-ventura-update\/\">Armin Briegel<\/a>:<\/p>\n<blockquote cite=\"https:\/\/scriptingosx.com\/2022\/11\/on-viewing-man-pages-ventura-update\/\"><p>Ventura&rsquo;s <a href=\"https:\/\/support.apple.com\/en-us\/HT213250\">Preview app lost the ability to render postscript or ps files<\/a>. This breaks the previous, popular shell alias to open a man page in Preview.<\/p><p>[&#8230;]<\/p><p>Add this function to your shell configuration file: (<a href=\"https:\/\/scriptingosx.com\/2017\/04\/about-bash_profile-and-bashrc-on-macos\/\">bash<\/a>, <a href=\"https:\/\/scriptingosx.com\/2019\/06\/moving-to-zsh-part-2-configuration-files\/\">zsh<\/a>) <\/p><pre>preman() {\n    mandoc -T pdf \"$(\/usr\/bin\/man -w $@)\" | open -fa Preview\n}\n<\/pre><p>[&#8230;]<\/p><p>I prefer opening the &lsquo;yellow&rsquo; man pages in Terminal app. You can do so by entering a command in the Help menu, or by using the <code>x-man-page<\/code> URL scheme. In these yellow terminal windows, you can scroll and search in the text with command-F. You can also do a secondary click (right\/ctrl\/two-finger click) on any word and it will offer to open that man page in the context menu.<\/p><\/blockquote>\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/10\/27\/preview-drops-support-for-postscript-files\/\">Preview Drops Support for PostScript Files<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Armin Briegel: Ventura&rsquo;s Preview app lost the ability to render postscript or ps files. This breaks the previous, popular shell alias to open a man page in Preview.[&#8230;]Add this function to your shell configuration file: (bash, zsh) preman() { mandoc -T pdf \"$(\/usr\/bin\/man -w $@)\" | open -fa Preview } [&#8230;]I prefer opening the &lsquo;yellow&rsquo; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-11-20T19:23:13Z","apple_news_api_id":"3c0e5451-eb16-4e60-b494-389e5413b92a","apple_news_api_modified_at":"2022-11-20T19:23:13Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/APA5UUesWTmC0lDieVBO5Kg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[30,2223,750,318,163],"class_list":["post-37664","post","type-post","status-publish","format-standard","hentry","category-technology","tag-mac","tag-macos-13-ventura","tag-man-pages","tag-terminal","tag-unix"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=37664"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37664\/revisions"}],"predecessor-version":[{"id":37665,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37664\/revisions\/37665"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=37664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=37664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=37664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}