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

Function preferred

packages/core/src/shell.ts:205–209  ·  view source on GitHub ↗
(configShell?: string)

Source from the content-addressed store, hash-verified

203let defaultAcceptable: string | undefined
204
205export function preferred(configShell?: string) {
206 if (configShell) return select(configShell)
207 defaultPreferred ??= select(process.env.SHELL)
208 return defaultPreferred
209}
210preferred.reset = () => {
211 defaultPreferred = undefined
212}

Callers

nothing calls this directly

Calls 1

selectFunction · 0.70

Tested by

no test coverage detected