mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 14:22:27 +00:00
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"
|
|
}
|