From 7f7eee45448555364e7a088b63e5287d8d4557eb Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 9 Aug 2017 12:57:16 +0300 Subject: [PATCH] .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. --- .zshrc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.zshrc b/.zshrc index e4e7a22..4b62762 100644 --- a/.zshrc +++ b/.zshrc @@ -21,22 +21,17 @@ compinit # OS-specific things if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then - # set homebrew paths - # see: http://brew.sh/ - PATH=/opt/brew/sbin:/opt/brew/bin:$PATH - MANPATH=/opt/brew/man:$MANPATH + # Add brew stuff to MANPATH + MANPATH=/usr/local/share/man:/usr/local/opt/postgresql@9.5/share/man:$PATH # 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_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 # 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'