brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: open x-man-page:// shows a man page in its own Terminal window

Terminal
~/tips/tip-terminal-x-man-page-window

open x-man-page://rsync

Opens a man page in a separate Mac Terminal window so your prompt stays free.

Reading a man page in the same window means you can’t type the command while you read about its options. On a Mac you can pop the page out.

Terminal registers the x-man-page URL scheme, so open can hand it a man page:

open x-man-page://rsync

A new window opens with the page, styled in its own yellowish profile and fully scrollable. Your original window still has its prompt, so you can build the command next to the documentation. I like this for tools with long option lists, like rsync, find or tmutil.

A small function makes it quicker to type:

xman() { open "x-man-page://$1"; }
xman tmutil

The scheme also works from other places that accept a link, such as a note or a Shortcuts action, and it always opens in Terminal.

It only works for pages installed on this Mac, so a Linux-only page like systemctl opens an empty window with an error. And the page is the macOS version: BSD sed or find options differ from the GNU ones on a server, so check there with man before you copy a flag across.

Further reading: open man page (macOS), man man page (macOS)

More Terminal tips ioreg -rn AppleSmartBattery | grep CycleCount Terminal can save your windows and tabs as a window group Export a Terminal profile to a .terminal file and import it on another Mac mc hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}' All Terminal tips (116) All topics

Link