mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 13:09:46 +00:00
feat(desktop): terminal pane (#5081)
Co-authored-by: Github Action <action@github.com> Co-authored-by: Dax Raad <d@ironbay.co>
This commit is contained in:
parent
b1202ac6db
commit
d763c11a6d
27 changed files with 2302 additions and 405 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