MCPcopy Index your code
hub / github.com/anomalyco/opencode / getUserShell

Function getUserShell

packages/desktop/src/main/shell-env.ts:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17export function getUserShell() {
18 try {
19 return resolveUserShell(process.env.SHELL, userInfo().shell)
20 } catch {
21 return resolveUserShell(process.env.SHELL, undefined)
22 }
23}
24
25export function parseShellEnv(out: Buffer) {
26 const env: Record<string, string> = {}

Callers 1

preferAppEnvFunction · 0.90

Calls 2

resolveUserShellFunction · 0.85
userInfoFunction · 0.85

Tested by

no test coverage detected