Skip to content

Instantly share code, notes, and snippets.

@april
Last active January 14, 2023 04:10
Show Gist options
  • Save april/c11e5bba921610f762ba6873cf9c4bba to your computer and use it in GitHub Desktop.
Save april/c11e5bba921610f762ba6873cf9c4bba to your computer and use it in GitHub Desktop.
function man-preview() {
# Don't let Preview.app steal focus if the man page doesn't exist
man -w "$@" &>/dev/null && man -t "$@" | open -f -a Preview || man "$@"
}
@waynekao
Copy link

Stopped working, I think because Ventura dropped support for PostScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment