mac & cheat-sheets: add a couple Mac terminal tricks

see https://apple.stackexchange.com/questions/5435/got-any-tips-or-tricks-for-terminal-in-mac-os-x for more
rewrite all functions in consistent format

eschew `function name()` in favor of just `name ()`