Git Bash missing items in PATH
Describe the bug
Using Git's bash.exe, the terminal session starts as expected, but it doesn't reflect the appropriate PATH environment, resulting in failure to run basic commands like ls because the PATH is missing the /mingw64/bin and /usr/bin
To Reproduce Steps to reproduce the behavior:
- set terminal shell path to
C:\Program Files\Git\bin\bash.exe ls
Expected behavior
PATH should include the /mingw64/bin and /usr/bin so it functions like bash should
Screenshots
Left is PATH within Lens, right is PATH within a terminal session of the same bash.exe
Environment (please complete the following information):
- Lens Version: 2025.8.121212-latest
- OS: Windows 10
- Git Version: 2.51.0.windows.1
- Installation method (e.g. snap or AppImage in Linux): Binary Installer
Dear @zacharyshale95
Thanks for reporting a bug. We will be sure to update our development team about your request.
Warm regards, Oleksandr from Lens
Hello @zacharyshale95, Thanks for reporting this! We can reproduce that using bash.exe directly inside Lens leads to a broken PATH, which makes commands like ls unavailable. As a workaround you can point Lens to git-bash.exe instead, but we also agree Lens should handle bash.exe properly. We’ve created a feature request to improve this.