MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getShellInfoLine

Function getShellInfoLine

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

Source from the content-addressed store, hash-verified

730}
731
732function getShellInfoLine(): string {
733 const shell = process.env.SHELL || 'unknown'
734 const shellName = shell.includes('zsh')
735 ? 'zsh'
736 : shell.includes('bash')
737 ? 'bash'
738 : shell
739 if (env.platform === 'win32') {
740 return `Shell: ${shellName} (use Unix shell syntax, not Windows — e.g., /dev/null not NUL, forward slashes in paths)`
741 }
742 return `Shell: ${shellName}`
743}
744
745export function getUnameSR(): string {
746 // 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