dimo414 / ProfileGem

A shell configuration utility to compartmentalize and manage your terminal utilities and environment
GNU General Public License v3.0
22 stars 6 forks source link

pgem_reload overwrites PATH changes that were made after loading ProfileGem #29

Open dimo414 opened 3 years ago

dimo414 commented 3 years ago

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.