blob: e23ba0199d332afd7ac508c78e466542daeb2d6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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"
}
|