add to PATH once. Fixes #261

This commit is contained in:
jthegedus 2018-01-14 00:42:55 +11:00
parent c838b99298
commit e2a98e1345

View File

@ -8,7 +8,9 @@ fi
export ASDF_DIR
ASDF_DIR="$(cd "$(dirname "$current_script_path")" &> /dev/null || exit 1; pwd)"
export PATH="${ASDF_DIR}/bin:${ASDF_DIR}/shims:$PATH"
[[ ":$PATH:" != *":${ASDF_DIR}/bin:"* ]] && PATH="${ASDF_DIR}/bin:$PATH"
[[ ":$PATH:" != *":${ASDF_DIR}/shims:"* ]] && PATH="${ASDF_DIR}/shims:$PATH"
if [ -n "$ZSH_VERSION" ]; then
autoload -U bashcompinit