From 6eaaaffcdd72ae1aa48658f6b1d0234b63710260 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Thu, 14 Aug 2025 17:54:22 -0500 Subject: [PATCH] fix: small tweak to support nushell (#1943) --- packages/opencode/src/session/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts index 2e5e15dd..222cf825 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,