From d763c11a6d5bc57869f11c87f5a293f61e427e0a Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 4 Dec 2025 15:37:29 -0600 Subject: feat(desktop): terminal pane (#5081) Co-authored-by: Github Action Co-authored-by: Dax Raad --- packages/util/src/shell.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/util/src/shell.ts (limited to 'packages/util') diff --git a/packages/util/src/shell.ts b/packages/util/src/shell.ts new file mode 100644 index 000000000..e23ba0199 --- /dev/null +++ b/packages/util/src/shell.ts @@ -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" +} -- cgit v1.2.3