mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
A different approach
This commit is contained in:
parent
e227c3cda1
commit
0d2648c7f4
10
asdf.fish
10
asdf.fish
@ -9,9 +9,15 @@ set -l asdf_data_dir (
|
||||
set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims
|
||||
|
||||
for x in $asdf_bin_dirs
|
||||
if test -d $x; and not contains $x $PATH
|
||||
set PATH $x $PATH
|
||||
if test -d $x
|
||||
for i in (seq 1 (count $PATH))
|
||||
if test $PATH[$i] = $x
|
||||
set -e PATH[$i]
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
set PATH $x $PATH
|
||||
end
|
||||
|
||||
# Add function wrapper so we can export variables
|
||||
|
Loading…
Reference in New Issue
Block a user