Skip to content

Instantly share code, notes, and snippets.

@carlosmcevilly
Created April 3, 2012 22:18
Show Gist options
  • Save carlosmcevilly/2295872 to your computer and use it in GitHub Desktop.
Save carlosmcevilly/2295872 to your computer and use it in GitHub Desktop.
bash function to view man pages using Preview.app
# put in .bashrc
pman () {
if [ "${2}" == '' ]; then
man -t "${1}" | open -f -a /Applications/Preview.app
else
man -t "${1}" "${2}" | open -f -a /Applications/Preview.app
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment