Using `brew` with `sudo` is a bad idea. Homebrew does not support the dropping of privileges for compilation and installation. So, a script can `rm -rf /`. For this very reason I have it installed in *~/.homebrew*.