.zshrc: Add /sbin and /usr/sbin to PATH on Mac OS X

These are needed by password store (pass) when editing passwords,
and they are not part of the user's PATH by default.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-11-21 19:36:15 +03:00
parent 031cd83ff5
commit f0fb944b62
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

3
.zshrc
View File

@ -26,6 +26,9 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
PATH=/opt/pkg/sbin:/opt/pkg/bin:$PATH
MANPATH=/opt/pkg/man:$MANPATH
# pass needs umount and diskutil, which are in /sbin and /usr/sbin
PATH=$PATH:/sbin:/usr/sbin
# use pkgsrc's GNU coreutils (prefixed with 'g')
# requires at least: coreutils findutils gsed
alias du='gdu'