Skip to content

Instantly share code, notes, and snippets.

@victorboissiere
Created November 25, 2017 22:57
Show Gist options
  • Save victorboissiere/727bede2eaf7ff050b0e305b6d3fc03b to your computer and use it in GitHub Desktop.
Save victorboissiere/727bede2eaf7ff050b0e305b6d3fc03b to your computer and use it in GitHub Desktop.
Replace man with TLDR
function man()
{
OUTPUT="`tldr $1 2>&1`"
if [ $? -eq 0 ]; then
echo $OUTPUT
else
/usr/bin/man $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment