fix(fish): use PATH instead of fish_user_paths (#1709)

This commit is contained in:
Bas Kok 2024-01-18 02:27:09 +01:00 committed by GitHub
parent 3b8f400c3e
commit 53276973f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,12 +11,12 @@ else
end end
# Do not use fish_add_path (added in Fish 3.2) because it # Do not use fish_add_path (added in Fish 3.2) because it
# potentially changes the order of items in fish_user_paths # potentially changes the order of items in PATH
if not contains $_asdf_bin $fish_user_paths if not contains $_asdf_bin $PATH
set --universal --prepend fish_user_paths $_asdf_bin set -gx --prepend PATH $_asdf_bin
end end
if not contains $_asdf_shims $fish_user_paths if not contains $_asdf_shims $PATH
set --universal --prepend fish_user_paths $_asdf_shims set -gx --prepend PATH $_asdf_shims
end end
set --erase _asdf_bin set --erase _asdf_bin
set --erase _asdf_shims set --erase _asdf_shims