MCPcopy
hub / github.com/claude-code-best/claude-code / getConfigFile

Function getConfigFile

src/utils/bash/ShellSnapshot.ts:181–191  ·  view source on GitHub ↗
(shellPath: string)

Source from the content-addressed store, hash-verified

179}
180
181function getConfigFile(shellPath: string): string {
182 const fileName = shellPath.includes('zsh')
183 ? '.zshrc'
184 : shellPath.includes('bash')
185 ? '.bashrc'
186 : '.profile'
187
188 const configPath = join(os.homedir(), fileName)
189
190 return configPath
191}
192
193/**
194 * Generates user-specific snapshot content (functions, options, aliases)

Callers 2

getSnapshotScriptFunction · 0.85
createAndSaveSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected