Add /usr/pkg to the PATH for NetBSD packages.

This commit is contained in:
Roy Marples 2008-01-10 23:51:58 +00:00
parent de6e4d3f50
commit 50d73fa223

View File

@ -61,7 +61,7 @@ _sanitize_path() {
local IFS=":" p= path= local IFS=":" p= path=
for p in ${PATH}; do for p in ${PATH}; do
case "${p}" in 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}";; *) path="${path}:${p}";;
esac esac
done done
@ -78,7 +78,7 @@ if [ -n "${ZSH_VERSION}" ]; then
fi fi
# Add our bin to $PATH # 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 unset _sanitize_path
for arg; do for arg; do