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

Function getShellType

src/utils/localInstaller.ts:156–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154 * Get shell type to determine appropriate path setup
155 */
156export function getShellType(): string {
157 const shellPath = process.env.SHELL || ''
158 if (shellPath.includes('zsh')) return 'zsh'
159 if (shellPath.includes('bash')) return 'bash'
160 if (shellPath.includes('fish')) return 'fish'
161 return 'unknown'
162}
163

Callers 3

checkInstallFunction · 0.85
getShellCompletionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected