diff options
author | Roy Marples <roy@marples.name> | 2008-01-10 23:51:58 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-10 23:51:58 +0000 |
commit | 50d73fa22374f5113eea3157c1357f44dfe06b92 (patch) | |
tree | a7eed2962b59a704d070ec0057e570a27fba743a | |
parent | de6e4d3f50822c64ce14d61991fdda148be442e9 (diff) |
Add /usr/pkg to the PATH for NetBSD packages.
-rw-r--r-- | sh/functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |