Prevent Homebrew from gathering analytics

Homebrew gathers anonymous analytics about its users. The Homebrew maintainers explain that they use the anonymous data to help the project, but you might want to disable this for two reasons:

  1. You don't want any of your data being shared at all.
  2. You want to avoid an unnecessary analytics network request.

You can disable Homebrew's analytics in one of two ways:

With a command:

brew analytics off

Or with an environment variable:

export HOMEBREW_NO_ANALYTICS=1

You can set this in your shell startup (your .bashrc, for example).

To see whether Homebrew is gathering data, you can run this command to print whether it's enabled:

brew analytics

Automatically ls when changing directories in zsh

The first thing I do when changing directories in the terminal is ls to get my bearings. I usually do it without thinking.

I used to do this manually, but then I learned that zsh has a way to do this for me. Zsh offers "hook functions", which can be defined and are executed when certain events happen. One of these functions, chpwd, will be "executed whenever the current working directory is changed."

Add something like this to your .zshrc:

chpwd() {
  ls
}

Now you'll ls whenever you cd (or pushd)!

"If my code helped one developer at least once"

From "On 10,000 npm installs — Or what Open Source Software means to me":

If my code helped one developer at least once...then it was all worth it.

I agree!

"X marks gender-neutral"

From a Kottke post:

"Mx." (pronounced "mix" or "mux") is a gender-neutral honorific. It's used by people who don't want to be identified by gender, whether their gender identity isn't well-represented by the older forms, or they just don't want to offer that information or assume it when addressing someone else.

...

This is happening. It's happening in progressive, diverse, digital communities first. And for all their fractiousness, and the inherent difficulty in dealing with areas as complex and personal as identity, gender, and sexuality, it does feel like some standards are emerging.

"The last thing we all need is for the 'data' economy to destroy another medium"

From "Apple's actual role in podcasting: be careful what you wish for":

[Podcasting is] completely decentralized, free, fair, open, and uncontrollable by any single entity, as long as the ecosystem of podcast-player apps remains diverse enough that no app can dictate arbitrary terms to publishers (the way Facebook now effectively controls the web publishing industry).

[...]

And the last thing we all need is for the "data" economy to destroy another medium.

I don't have much skin/knowledge in this game, but I agree that podcasts feel like one of the final pieces of media that hasn't been overrun by money-grabbing. Nothing like this lasts but I'm living it up!