From 50d73fa22374f5113eea3157c1357f44dfe06b92 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 10 Jan 2008 23:51:58 +0000 Subject: Add /usr/pkg to the PATH for NetBSD packages. --- sh/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/functions.sh b/sh/functions.sh index f6c51f89..202fab0c 100644 --- a/sh/functions.sh +++ b/sh/functions.sh @@ -61,7 +61,7 @@ _sanitize_path() { local IFS=":" p= path= for p in ${PATH}; do case "${p}" in - /lib/rc/sbin|/bin|/sbin|/usr/bin|/usr/sbin|/usr/local/bin|/usr/local/sbin);; + /lib/rc/sbin|/bin|/sbin|/usr/bin|/usr/sbin|/usr/pkg/bin|/usr/pkg/sbin|/usr/local/bin|/usr/local/sbin);; *) path="${path}:${p}";; esac done @@ -78,7 +78,7 @@ if [ -n "${ZSH_VERSION}" ]; then fi # Add our bin to $PATH -export PATH="/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin$(_sanitize_path "${PATH}")" +export PATH="/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/local/bin:/usr/local/sbin$(_sanitize_path "${PATH}")" unset _sanitize_path for arg; do -- cgit v1.2.3