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

Function shellDisplayName

packages/opencode/src/tool/shell/prompt.ts:36–41  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

34}
35
36function shellDisplayName(name: string) {
37 if (name === "pwsh") return "PowerShell (7+)"
38 if (name === "powershell") return "Windows PowerShell (5.1)"
39 if (name === "cmd") return "cmd.exe"
40 return name
41}
42
43function powershellNotes(name: string) {
44 if (name === "pwsh") {

Callers 1

profileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected