[Fish] Change the order of the $PATH variable
Custom and local executables will now have the priority over system executables. For instance, an `ls' executable located in `$HOME/.local/bin/ls' will have the priority over `/bin/ls'
This commit is contained in:
parent
69dc8c7d7c
commit
2187348425
@ -223,7 +223,7 @@
|
|||||||
#+BEGIN_SRC fish :noweb yes
|
#+BEGIN_SRC fish :noweb yes
|
||||||
for p in <<generate-extra-paths()>>
|
for p in <<generate-extra-paths()>>
|
||||||
if status is-login
|
if status is-login
|
||||||
contains $p $PATH || set PATH $PATH $p
|
contains $p $PATH || set PATH $p $PATH
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Loading…
Reference in New Issue
Block a user