Detect and use 'new-style' asdf if it's in ~/bin
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
if [ -d "$HOME/.asdf" ] ; then
|
||||
ASDF_DATA_DIR=$HOME/.asdf
|
||||
|
||||
# Pre-0.16.0
|
||||
# if [ -f "$ASDF_DATA_DIR/asdf.sh" ] ; then
|
||||
# . "$HOME/.asdf/asdf.sh"
|
||||
# . "$HOME/.asdf/completions/asdf.bash"
|
||||
# fi
|
||||
|
||||
addpath $ASDF_DATA_DIR/shims
|
||||
if [ -x "$HOME/bin/asdf" ] ; then
|
||||
export ASDF_DATA_DIR="$HOME/.asdf"
|
||||
mkdir -p "$ASDF_DATA_DIR"
|
||||
addpath "$ASDF_DATA_DIR/shims"
|
||||
elif [ -d "$HOME/.asdf" ] ; then
|
||||
. "$HOME/.asdf/asdf.sh"
|
||||
. "$HOME/.asdf/completions/asdf.bash"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user