Live data from Hacker News

Bro pages: like man pages, but with examples only

bropages.org

871–872 of 872 posts

Re: Bro pages: like man pages, but with examples only

#871

Earlier quoted context omitted.

Ha oh I see, you're one of those simpletons who thinks that all people who meet a certain arbitrary criterion must be exactly the same. I've never even been close to the jock/douchebag-frat stereotype (I actually can't think of a single trait that I have that fits: short, unfashionable, hell I didn't even party that much in college). But hey, whatever helps you get over the trauma of getting constantly stuffed in loc…

You're just reinforcing my point.

Right, because thinking stereotyping is bullshit is a total "fratty" move...

Re: Bro pages: like man pages, but with examples only

#872
I humbly submit an implementation of `eg`. It solves the technical problem discussed here for a selection of programms (notably git!):

    alias eg='man --pager='\''less -p "^[A-Z]* ?EXAMPLES"'\'''
This obviously depends on the quality of the man-pages.

Witness: `eg git pull` (with a recent enough Bash, `eg git-pull` otherwise), `eg awk`, `eg cat` or even `eg man`.

Ironically, the curl man-page doesn't have a separate Examples section; the authors prefer to intersperse those throughout the text.

The name was coined here by imdsm[0] -- I had been using `examples` previously.

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

Post reply on HN