opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: windows fallback for "less" cmd in `session list`

Open itsrainingmani opened this issue 2 weeks ago • 0 comments

Since Bun.Shell doesn't natively implement less, we use fallbacks to determine the best option on Windows -

We try to locate less.exe from:

  • The OPENCODE_GIT_BASH_PATH custom location
  • The Git installation directory (found via git in PATH)

if less cannot be located, we finally fall back to the built-in more command.

itsrainingmani avatar Dec 31 '25 07:12 itsrainingmani