by the__alchemist · 1mo ago · 0 comments
If you are using shell scripting (And prefer Bash etc over Python), you would keep using Bash/Fish/Zsh etc. If you are using the CLI to launch applications that don't have a GUI, navigate directories and perform file system operations, then you would use the plain terminal.
Env vars are not global. They just have that illusion because a fork() by default will pass your running env vars to the child. Thus trickling that value down.
It sounds like you could make it yourself in ~10 lines of Python or bash. I don't see it catching on, though.
This sounds like Windows. ;)
Environment variables are stored in the registry; for the user, it's
HKCU\Environment
and for system-wide env vars, it's HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\EnvironmentI'm not sure why this can't be done. Security people will have a million reasons, I guess it's possible one of them might be valid.