MCPcopy Create free account
hub / github.com/Noumena-Network/code / getShellInfoLine

Function getShellInfoLine

src/constants/prompts.ts:722–733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

720}
721
722function getShellInfoLine(): string {
723 const shell = process.env.SHELL || 'unknown'
724 const shellName = shell.includes('zsh')
725 ? 'zsh'
726 : shell.includes('bash')
727 ? 'bash'
728 : shell
729 if (env.platform === 'win32') {
730 return `Shell: ${shellName} (use Unix shell syntax, not Windows — e.g., /dev/null not NUL, forward slashes in paths)`
731 }
732 return `Shell: ${shellName}`
733}
734
735export function getUnameSR(): string {
736 // os.type() and os.release() both wrap uname(3) on POSIX, producing output

Callers 2

computeEnvInfoFunction · 0.85
computeSimpleEnvInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected