Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Its consistent on windows across shells but its also a hard to find feature if you haven't been using Windows for decades and its not easily scripted. Its still kind of hard, could be a lot easier than it is.


It's in the registry, iirc. All Linux needs is a standard persistent key/value store(*) that by convention shells check for environment variables before running their rc scripts.

So it will never happen.

* the file system doesn't count


SYSTEM: HKLM\SOFTWARE\CurrentControlSet\Control\Session Manager\Environment

User: HKCU\Environment


> a standard persistent key/value store()*

systemd-kvdb




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: