ProfileGem icon indicating copy to clipboard operation
ProfileGem copied to clipboard

pgem_reload overwrites PATH changes that were made after loading ProfileGem

Open dimo414 opened this issue 4 years ago • 0 comments

Due to this line, if PATH is modified after loading ProfileGem the update will be lost after reloading. This is arguably WAI since ProfileGem is expected to manage all path changes after being loaded (via pg::add_path in individual gems) but the resulting behavior of paths being dropped is not great.

At a minimum pgem_reload could detect when the PATH has been changed since load.sh completed and log a warning.

dimo414 avatar Nov 02 '21 22:11 dimo414