@@ -29,31 +29,39 @@ if test -n "$asdf"
29
29
set -gx PATH " $ASDF_DATA_DIR /shims" $PATH
30
30
end
31
31
else
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 "
39
38
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
42
41
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 )
47
46
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
50
49
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 )
55
54
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
57
65
end
58
66
end
59
67
end
0 commit comments