Stochastic Nonsense

Put something smart here.

Quoting for Hacker News

I hate hand quoting text for hacker news posts. Mostly as a memo to myself, this command will wrap stdin to 77 columns preferentially breaking on spaces, insert the first 3 spaces so that HN recognizes the text as a quote, then leave the output in my copybuffer.

1
echo 'the stuff I want to quote here' | fold -w 77 -s | sed "s/^/   /" | pbcopy

Feel free to use pbpaste instead of echo.