asdf/asdf.sh

16 lines
325 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
autoload -U bashcompinit
bashcompinit
2015-12-05 03:14:37 -07:00
fi