fix: Use _path_add for PATH entries appended at the end
profile.d/path and rc.d/rvm concatenated onto PATH directly, so re-sourcing them in the same shell (source ~/.bashrc, a resourced tmux pane, etc.) would duplicate entries. _path_add already guards against that and tests directory existence itself. profile.d/krew and profile.d/anyenv are left untouched: they prepend to PATH (to take priority over other entries), while _path_add always appends — converting them would silently change resolution order.
This commit is contained in:
1 parent
5653b8caf0
commit
6e01d0308e
2 files changed
+5
-5
No files matched your search
Reference in new issue
Block a user