Inicie um gitbash ou uma sessão do cmd do Windows e execute
echo $PATH
ou
echo %PATH%
Ambos imprimem o conteúdo da variável PATH do sistema, mas nenhum imprime o conteúdo da variável PATH específica da minha conta de usuário. Para referência, aqui está a saída de echo $PATH
no git bash:
/c/Users/Chiel.tenBrinke/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/Chiel.tenBrinke/bin:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files/ThinkPad/Bluetooth Software:/c/Program Files/ThinkPad/Bluetooth Software/syswow64:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/c/Program Files/Common Files/Lenovo:/c/SWTOOLS/ReadyApps:/c/Program Files (x86)/Common Files/Lenovo:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Program Files/Symantec.cloud/PlatformAgent:/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit:/c/Program Files/Microsoft SQL Server/110/Tools/Binn:/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/c/Program Files (x86)/Microsoft SDKs/TypeScript/1.0:/c/Program Files/Microsoft SQL Server/120/Tools/Binn:/c/Program Files/Microsoft/Web Platform Installer:/c/Program Files (x86)/IBM/Personal Communications:/c/Program Files (x86)/IBM/Trace Facility:/c/Program Files/7-Zip:/c/Program Files (x86)/Gource/cmd:/c/Program Files (x86)/LLVM/bin:/c/Program Files/Perforce:/c/Program Files/Perforce/DVCS:/c/Users/Chiel.tenBrinke/.dnx/bin:/c/Program Files/Microsoft DNX/Dnvm:/c/Program Files/nodejs:/c/ProgramData/chocolatey/bin:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Go/bin:/c/Users/Chiel.tenBrinke/bin:/c/Program Files (x86)/Python 3.5/Scripts:/c/Program Files (x86)/Python 3.5:/c/ProgramData/Oracle/Java/javapath:/c/Program Files/Python 3.5/Scripts:/c/Program Files/Python 3.5:
Só para esclarecer a diferença entre o PATH do sistema e o PATH do usuário, esta captura de tela mostra o painel que permite editar as variáveis do usuário e as variáveis do sistema, e essa é a diferença a que estou me referindo:
Conforme solicitado, aqui está o conteúdo do PATH do usuário:
C:\Ruby22-x64\bin;C:\Users\Chiel.tenBrinke\bin;C:\Program Files (x86)\CMake\bin;C:\Users\Chiel.tenBrinke\AppData\Local\Pandoc\;C:\Users\Chiel.tenBrinke\luacheck\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Users\Chiel.tenBrinke\AppData\Roaming\npm;C:\Users\Chiel.tenBrinke\.babun;C:\Users\Chiel.tenBrinke\.gem\ruby.2.0\bin;C:\Program Files (x86)\ChucK\bin
e o sistema PATH:
C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Symantec.cloud\PlatformAgent\;C:\Program Files (x86)\Windows Kits.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server0\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server0\Tools\Binn\;c:\Program Files\Microsoft SQL Server0\Tools\Binn\;c:\Program Files\Microsoft SQL Server0\DTS\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript.0\;C:\Program Files\Microsoft SQL Server0\Tools\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\IBM\Personal Communications\;C:\Program Files (x86)\IBM\Trace Facility\;C:\Program Files-Zip;C:\Program Files (x86)\Gource\cmd;C:\Program Files (x86)\LLVM\bin;C:\Program Files\Perforce;C:\Program Files\Perforce\DVCS\;C:\Users\Chiel.tenBrinke\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft SQL Server0\Tools\Binn\;C:\Go\bin;C:\Users\Chiel.tenBrinke\bin;C:\Program Files (x86)\Python 3.5\Scripts\;C:\Program Files (x86)\Python 3.5\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Python 3.5\Scripts\;C:\Program Files\Python 3.5\;C:\Program Files\Git\cmd
Como posso ter certeza de que a variável PATH do meu usuário também é levada em conta no cmd e no git bash?