From 103081834745107a3811aaf0f5fc1a5cd781ae5c Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 21 Aug 2016 10:57:55 +0300 Subject: [PATCH] .zshrc: Add variables to tweak Homebrew behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Homebrew runs `brew update` before every fucking brew command? No thank you. Also, after reading `man brew` I found there are some other options to tweak for security and performance, like disallowing HTTPS→HTTP redirects and using less cores to compile stuff (running four make jobs on a system with two real cores? WTF, Homebrew?). --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index a5443a3..1470b9a 100644 --- a/.zshrc +++ b/.zshrc @@ -29,6 +29,11 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then # opt out of Homebrew analytics # see: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md export HOMEBREW_NO_ANALYTICS=1 + export HOMEBREW_NO_AUTO_UPDATE=1 + export HOMEBREW_NO_EMOJI=1 + export HOMEBREW_NO_INSECURE_REDIRECT=1 + export HOMEBREW_MAKE_JOBS=3 + export HOMEBREW_NO_AUTO_UPDATE=1 # pass needs umount and diskutil, which are in /sbin and /usr/sbin PATH=$PATH:/sbin:/usr/sbin