Hacker News new | ask | show | jobs
by hf 4514 days ago
Elsewhere[0] I mentioned a shell alias called `eg` that jumps to the 'Examples' section in traditional man-pages.

I made great use of it with the excellently structured yet rather verbose git man-pages.

Anyways, here's the alias:

    alias eg='man --pager='\''less -p "^[A-Z]* ?EXAMPLES"'\'''
Try it out:

    eg git pull
(With older shells you might have to say `eg git-pull`).

Now as concerns the fine project submitted here, I'd suggest to try getting as much of those tldr's into actual man-pages. This will at least make the long-term survival of OP's labour more probable.

[0] https://news.ycombinator.com/item?id=7167815