Welcome to the forum!
The installer does update your path: windows-installer/Delphi/Project/Source/uUpdatePath.pas at 3bcbd8f2b1bdbbfc36c078697c222fffe77f188d · exercism/windows-installer · GitHub
What I guess happened is that you had a Powershell opened before you started the installation, and after the installation you tried to run the command in that Powershell that was already opened. For environment variables to refresh, you’d need to start a new Powershell after the installation.
Check you $env:Path
again - my guess is that C:\Exercism
is now duplicated there after you appended to your profile too.
An alternative to adding the variable to your profile would be to add it to your user in the Windows settings, search for “Edit the system environment variables” on windows and you should see the menu that let’s you edit the env vars for your user and your system, including PATH
. I find it’s easier to edit and see the env vars here.
If you want to do the same using Powershell, start a Powershell in Administrator mode and run:
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Exercism", "User")
Doing this will set the env var for your user, which can then be visible by any shell, not just Powershell. But again, I don’t think messing with env vars manually was needed here.
Yes. Powershell is more powerful overall and can do things that the command prompt can’t. There are also different versions of Powershell. Most windows installations by default ship with Powershell 5, but there is also Powershell 7 which fixes many issues with Powershell 5 and adds even more functionality.
I don’t think manually messing with the env vars was needed here. The installer should set if for you, and you probably just needed a Powershell restart.
Note that restarting the shell to see updates to env vars is often needed in most shells, not just Powershell. Maybe including a note the restart the shell you are currently using could be added to the instructions.
There’s no need to recommend any particular shell as “best practice” in the installation instructions - every user should choose the one they want to use and the exercism
command should work in all of them, since it updates the PATH
and all shells I know read from PATH
to look for executables.