mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-17 12:56:41 +02:00
09f522f0aa
This reverts commit f9dcd97936.
14 lines
300 B
TypeScript
14 lines
300 B
TypeScript
export function shell() {
|
|
const s = process.env.SHELL
|
|
if (s) return s
|
|
if (process.platform === "darwin") {
|
|
return "/bin/zsh"
|
|
}
|
|
if (process.platform === "win32") {
|
|
return process.env.COMSPEC || "cmd.exe"
|
|
}
|
|
const bash = Bun.which("bash")
|
|
if (bash) return bash
|
|
return "bash"
|
|
}
|