asdf/asdf.sh

16 lines
338 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
asdf_dir=$(cd $(dirname $current_script_path) &> /dev/null; echo $(pwd))
2015-05-13 23:51:01 -07:00
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