.zshrc: Use homebrew instead of pkgsrc

I prefer pkgsrc, but the packages are only updated once per quarter,
so if something is broken you won't get a fixed version for a few
months, or if you want some new upstream release you have to wait.

Installed homebrew manually in /opt/brew because of Mac OS X's system
integrity protection since 10.11.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-11-24 00:40:00 +03:00
parent f0fb944b62
commit 1e37d1fc12

12
.zshrc
View File

@ -21,16 +21,16 @@ compinit
# OS-specific things # OS-specific things
if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
# set pkgsrc paths # set homebrew paths
# see: http://pkgsrc.joyent.com/install-on-osx/ # see: http://brew.sh/
PATH=/opt/pkg/sbin:/opt/pkg/bin:$PATH PATH=/opt/brew/sbin:/opt/brew/bin:$PATH
MANPATH=/opt/pkg/man:$MANPATH MANPATH=/opt/brew/man:$MANPATH
# pass needs umount and diskutil, which are in /sbin and /usr/sbin # pass needs umount and diskutil, which are in /sbin and /usr/sbin
PATH=$PATH:/sbin:/usr/sbin PATH=$PATH:/sbin:/usr/sbin
# use pkgsrc's GNU coreutils (prefixed with 'g') # use homebrew's GNU coreutils (prefixed with 'g')
# requires at least: coreutils findutils gsed # requires at least: coreutils findutils gnu-sed
alias du='gdu' alias du='gdu'
alias ls='gls -F --color=auto' alias ls='gls -F --color=auto'
alias df='gdf' alias df='gdf'