Skip to content

Instantly share code, notes, and snippets.

@smujohnson
Created October 11, 2012 17:34
Show Gist options
  • Save smujohnson/3874143 to your computer and use it in GitHub Desktop.
Save smujohnson/3874143 to your computer and use it in GitHub Desktop.
man ()
{
if /usr/bin/man "$@" > /dev/null 2>&1; then
/usr/bin/man "$@" | vi - -R;
else
/usr/bin/man "$@";
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment