asdf/asdf.sh

17 lines
382 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2015-05-13 23:51:01 -07:00
if [ "${BASH_SOURCE[0]}" != "" ]; then
current_script_path="${BASH_SOURCE[0]}"
else
current_script_path="$0"
fi
# shellcheck disable=SC2155,SC2164
export ASDF_DIR="$(cd "$(dirname "$current_script_path")" &> /dev/null; pwd)"
export PATH="${ASDF_DIR}/bin:${ASDF_DIR}/shims:$PATH"
2015-12-05 03:14:37 -07:00
if [ -n "$ZSH_VERSION" ]; then
autoload -U bashcompinit
bashcompinit
2015-12-05 03:14:37 -07:00
fi