Detect and use 'new-style' asdf if it's in ~/bin

This commit is contained in:
2025-02-13 22:30:26 +00:00
parent d27718468e
commit de410b1577

View File

@@ -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