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
|
if [ -x "$HOME/bin/asdf" ] ; then
|
||||||
ASDF_DATA_DIR=$HOME/.asdf
|
export ASDF_DATA_DIR="$HOME/.asdf"
|
||||||
|
mkdir -p "$ASDF_DATA_DIR"
|
||||||
# Pre-0.16.0
|
addpath "$ASDF_DATA_DIR/shims"
|
||||||
# if [ -f "$ASDF_DATA_DIR/asdf.sh" ] ; then
|
elif [ -d "$HOME/.asdf" ] ; then
|
||||||
# . "$HOME/.asdf/asdf.sh"
|
. "$HOME/.asdf/asdf.sh"
|
||||||
# . "$HOME/.asdf/completions/asdf.bash"
|
. "$HOME/.asdf/completions/asdf.bash"
|
||||||
# fi
|
|
||||||
|
|
||||||
addpath $ASDF_DATA_DIR/shims
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user