lens icon indicating copy to clipboard operation
lens copied to clipboard

Git Bash missing items in PATH

Open zacharyshale95 opened this issue 3 months ago • 2 comments

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:

  1. set terminal shell path to C:\Program Files\Git\bin\bash.exe
  2. 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 Image

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

zacharyshale95 avatar Sep 18 '25 01:09 zacharyshale95

Dear @zacharyshale95

Thanks for reporting a bug. We will be sure to update our development team about your request.

Warm regards, Oleksandr from Lens

koshevka avatar Sep 19 '25 07:09 koshevka

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.

clrothmann avatar Sep 19 '25 11:09 clrothmann