asdf/asdf.sh

17 lines
358 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
2015-05-13 23:51:01 -07:00
asdf_dir=$(cd $(dirname $current_script_path); echo $(pwd))
export PATH="${asdf_dir}/bin:${asdf_dir}/shims:$PATH"
2015-12-05 03:14:37 -07:00
if [ -n "$ZSH_VERSION" ]; then
fpath=(${asdf_dir}/completions $fpath)
autoload -U compinit
compinit
fi