diff options
| author | Aiden Cline <[email protected]> | 2025-08-14 17:54:22 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-14 17:54:22 -0500 |
| commit | 6eaaaffcdd72ae1aa48658f6b1d0234b63710260 (patch) | |
| tree | 4edda71aa139db189dbea26eb07aacefd81414b8 | |
| parent | 766fa521ea2a986de71cb7ca8c1e2d348286c50e (diff) | |
| download | opencode-6eaaaffcdd72ae1aa48658f6b1d0234b63710260.tar.gz opencode-6eaaaffcdd72ae1aa48658f6b1d0234b63710260.zip | |
fix: small tweak to support nushell (#1943)
| -rw-r--r-- | packages/opencode/src/session/index.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts index 2e5e15dd7..222cf8257 100644 --- a/packages/opencode/src/session/index.ts +++ b/packages/opencode/src/session/index.ts @@ -1062,10 +1062,8 @@ export namespace Session { eval "${input.command}" ` const shell = process.env["SHELL"] ?? "bash" - const isFish = shell.includes("fish") - const args = isFish - ? ["-c", script] // fish with just -c - : ["-c", "-l", script] + const supportsLoginFlag = !shell.includes("fish") && !shell.includes("nu") + const args = supportsLoginFlag ? ["-c", "-l", script] : ["-c", script] const proc = spawn(shell, args, { cwd: app.path.cwd, |
