From f0fb944b621cc115b39aba314140b26c26ee88cb Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 21 Nov 2015 19:36:15 +0300 Subject: [PATCH] .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 --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zshrc b/.zshrc index a0ef413..ac1f3a1 100644 --- a/.zshrc +++ b/.zshrc @@ -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'