diff --git a/init.sh b/init.sh index a15c32c..8191058 100644 --- a/init.sh +++ b/init.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash # vim: ft=bash -PATH="/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin:/opt/local/bin:${PATH}" -export PATH + +for path in /usr/local/bin /usr/bin /bin /sbin /usr/sbin /opt/local/bin; do + [[ -d "${path}" ]] && echo "${PATH}" | grep -q "${path}" || export PATH="${PATH}" +done set +e export SHELL_COMMAND