The Living Thing / Notebooks :

Surviving bash

but which are tedious to work out

General, not OSX-specific or linux-specific, and see also shells to yak-shave your way into whole other shell paradigms. Or fish for a less awful user experience.

Basic syntax.

I just don’t care enough to remember. This makes me a Bad Hacker.

For loops

Watch out for horrible problems with handling of delimeters. Anyway, for loops are not insane.

for i in $( ls ); do
    echo item: $i

bash history

Init file madness

Weird bash syntax errors about ‘end of file’.