Skip to content

Instantly share code, notes, and snippets.

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 "$@"
}