@wolf480pl@robby Most people think of environemnt vars in interactive context, and all my interactive shells inherit the same profile, so all processes from my shells inherit those variables from my profile.... so they are global.
@wolf480pl@mbernabe I haven’t really done that before tbh. On Fedora I use the alternatives command for picking java versions, but that needlessly requires root. Otherwise I usually have a .env file for my project that gets sourced when I start my application.
@wolf480pl@robby I do use that trick myself sometimes, but more for controlling CWD and auto reverting it than anything else. In my experience most people treat shell as batch scripts with very little design or consideration. Which leads to not knowing much shell and using everything as global.