opencode
opencode copied to clipboard
fix: windows fallback for "less" cmd in `session list`
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_PATHcustom 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.