#!/bin/sh
#Display the man page for a command.
#If man page nonexistent, call tldr
#to display an abbreviated man page.

man.bin "$@" && exit || \
tldr -m "$@" 2>/dev/null | \
sed  -e 's/^>//g' \
     -e 's/^-/ •/g' \
     -e 's/^`/     /g' \
     -e 's/`//g' \
     -e 's/{{/</g' \
     -e 's/}}/>/g' \
     -e 's/[][]//g' |
less
clear
