Why are there duplicate paths in the terminal's $PATH environment variable and/or why are they reversed?
There are two direct fixes for this. The first is to set "terminal.integrated.inheritEnv": false, which will strip most environment variables from the terminal's environment, except for some important ones (like HOME, SHELL, TMPDIR, etc.).
Why are there duplicate paths in the terminal's $PATH environment variable and/or why are they reversed?