.zshrc: Reinstall Homebrew to /usr/local

I liked using Homebrew from a custom prefix but it causes many more
packages to have to build from source because the pre-compiled ones
from Homebrew's CI are installed in /usr/local and non relocatable.
This commit is contained in:
Alan Orth 2017-08-09 12:57:16 +03:00
parent 19c9d664b4
commit 7f7eee4544
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

11
.zshrc
View File

@ -21,22 +21,17 @@ compinit
# OS-specific things # OS-specific things
if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
# set homebrew paths # Add brew stuff to MANPATH
# see: http://brew.sh/ MANPATH=/usr/local/share/man:/usr/local/opt/postgresql@9.5/share/man:$PATH
PATH=/opt/brew/sbin:/opt/brew/bin:$PATH
MANPATH=/opt/brew/man:$MANPATH
# opt out of Homebrew analytics # opt out of Homebrew analytics
# see: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md # see: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
export HOMEBREW_NO_ANALYTICS=1 export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_EMOJI=1 export HOMEBREW_NO_EMOJI=1
# pass needs umount and diskutil, which are in /sbin and /usr/sbin
PATH=$PATH:/sbin:/usr/sbin
# use some GNU stuff from homebrew: coreutils findutils gnu-sed # use some GNU stuff from homebrew: coreutils findutils gnu-sed
# requires at least: coreutils findutils gnu-sed # requires at least: coreutils findutils gnu-sed
PATH=/opt/brew/opt/coreutils/libexec/gnubin:/opt/brew/opt/findutils/libexec/gnubin:/opt/brew/opt/gnu-sed/libexec/gnubin:$PATH PATH="/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
alias grep='ggrep' alias grep='ggrep'