Make ssh:// links open in Ghostty instead of Terminal.app or iTerm2. They open as a new tab in your existing Ghostty window, or launch Ghostty if it isn't running. Connections go through ghostty +ssh, which installs Ghostty's terminfo on the remote host, so you don't get xterm-ghostty: unknown terminal type errors. When the SSH session ends, the tab drops you back into a local shell instead of closing.
Requires Ghostty 1.4.0 or later, which is needed for the +ssh integration.
macOS only lets an app bundle handle a URL scheme, and Ghostty doesn't claim ssh://. So we build a tiny AppleScript applet (GhosttySSH.app) that: