Skip to content

Commit 779c3de

Browse files
committed
feat: use default shell on nix env (anomalyco#3479)
1 parent 872c946 commit 779c3de

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/opencode/src/tool/bash.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ export const BashTool = Tool.define("bash", {
147147
}
148148

149149
const proc = spawn(params.command, {
150-
shell: true,
150+
shell:
151+
process.platform === "win32"
152+
? true // process.env.ComSpec on Windows
153+
: (process.env.SHELL ?? true), // $SHELL - *default shell for new sessions* if set, otherwise /bun/sh
151154
cwd: Instance.directory,
152155
stdio: ["ignore", "pipe", "pipe"],
153156
detached: process.platform !== "win32",

0 commit comments

Comments
 (0)