mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Put user paths at beginning
This commit is contained in:
@@ -69,9 +69,9 @@ function __fish_reconstruct_path -d "Update PATH when fish_user_paths changes" -
|
||||
end
|
||||
|
||||
set -e __fish_added_user_paths
|
||||
for x in $fish_user_paths
|
||||
for x in $fish_user_paths[-1..1]
|
||||
if not contains $x $local_path
|
||||
set local_path $local_path $x
|
||||
set local_path $x $local_path
|
||||
set -g __fish_added_user_paths $__fish_added_user_paths $x
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user