mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Reapply "feat(desktop): terminal pane (#5081)"
This reverts commit f9dcd97936.
This commit is contained in:
parent
d82bd430f6
commit
09f522f0aa
26 changed files with 2299 additions and 402 deletions
13
packages/util/src/shell.ts
Normal file
13
packages/util/src/shell.ts
Normal file
|
|
@ -0,0 +1,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"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue