feat: Split _path_add into _path_append and _path_prepend
_path_add only ever appended to PATH, which didn't fit profile.d/krew and profile.d/anyenv (they prepend, to take priority). Rename it to _path_append for clarity and add _path_prepend alongside it, so both orderings get the same dedup guard when needed — krew and anyenv aren't converted yet, kept as plain PATH concatenation until then.
This commit is contained in:
+4
-4
@@ -1,6 +1,6 @@
|
||||
# Customize PATH
|
||||
_path_add "${HOME}/.bin"
|
||||
_path_add "${HOME}/.local/bin"
|
||||
_path_append "${HOME}/.bin"
|
||||
_path_append "${HOME}/.local/bin"
|
||||
|
||||
_path_add "${HOME}/bin"
|
||||
_path_add "${HOME}/scripts"
|
||||
_path_append "${HOME}/bin"
|
||||
_path_append "${HOME}/scripts"
|
||||
|
||||
Reference in New Issue
Block a user