@@ -29,31 +29,39 @@ if test -n "$asdf"
2929 set -gx PATH " $ASDF_DATA_DIR /shims" $PATH
3030 end
3131else
32- echo " asdf not found" >&2
33- echo " Looking for mise executable" >&2
34-
35- set mise (which mise)
36- if test -n " $mise "
37- echo " mise executable found at $mise , activating" >&2
38- source ( " $mise " env -s fish )
32+ # Fallback to old method for asdf version <= 0.15.x
33+ set ASDF_SH " $ASDF_DIR /asdf.fish"
34+ if test -f " $ASDF_SH "
35+ echo " Legacy pre v0.16.0 asdf install found at $ASDF_SH , sourcing" >&2
36+ # Source the old asdf.sh script for versions <= 0.15.0
37+ source " $ASDF_SH "
3938 else
40- echo " mise not found" >&2
41- echo " Looking for rtx executable" >&2
39+ echo " asdf not found" >&2
40+ echo " Looking for mise executable" >&2
4241
43- set rtx (which rtx )
44- if test -n " $rtx "
45- echo " rtx executable found at $rtx , activating" >&2
46- source ( " $rtx " env -s fish )
42+ set mise (which mise )
43+ if test -n " $mise "
44+ echo " mise executable found at $mise , activating" >&2
45+ source ( " $mise " env -s fish )
4746 else
48- echo " rtx not found" >&2
49- echo " Looking for vfox executable" >&2
47+ echo " mise not found" >&2
48+ echo " Looking for rtx executable" >&2
5049
51- set vfox (which vfox )
52- if test -n " $vfox "
53- echo " vfox executable found at $vfox , activating" >&2
54- source ( " $vfox " activate fish )
50+ set rtx (which rtx )
51+ if test -n " $rtx "
52+ echo " rtx executable found at $rtx , activating" >&2
53+ source ( " $rtx " env -s fish )
5554 else
56- echo " vfox not found" >&2
55+ echo " rtx not found" >&2
56+ echo " Looking for vfox executable" >&2
57+
58+ set vfox (which vfox)
59+ if test -n " $vfox "
60+ echo " vfox executable found at $vfox , activating" >&2
61+ source ( " $vfox " activate fish )
62+ else
63+ echo " vfox not found" >&2
64+ end
5765 end
5866 end
5967 end
0 commit comments