Skip to content

Comment on How to add a directory to your PATHparent

Comments

There should certainly be a GUI to do it.

The difference on Linux/BSD/macOS is that the Window Server is a userland application -- you can't depend on it existing (except macOS), nor can you depend on the underlying shell being consistent on a given OS/distribution (macOS ships with a deprecated bash shell and current zsh shell).

On Windows, Microsoft has it easy. The window server is part of the executive; Win32/conhost always exist, even if you choose to run another personality (OS/2, POSIX, et. al.).

I would bet that there is a form of graphical editor somewhere out there on the Internet that someone developed for fun for a given shell.

You mean, there should be a GUI

That must have been what Microsoft was figuring back in the 20th century.

Even in the latest W11, it's the same basic everyday GUI as in Windows XP :)

Just a little more intuitive now.

In XP from the Control Panel click System > Advanced > Environment Variables.

In Win11 from Settings click System > About > Advanced System Settings > Environment Variables.

Pay attention to your choice of User PATH, in addition to System PATH.

Make sure that things like %HOMEDRIVE% that you edit in, actually appear as "C:" once you are done editing, or you're not doing it ideally.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.