MCPcopy Index your code
hub / github.com/Noumena-Network/code / getConfigFile

Function getConfigFile

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

Source from the content-addressed store, hash-verified

180}
181
182function getConfigFile(shellPath: string): string {
183 const fileName = shellPath.includes('zsh')
184 ? '.zshrc'
185 : shellPath.includes('bash')
186 ? '.bashrc'
187 : '.profile'
188
189 const configPath = join(os.homedir(), fileName)
190
191 return configPath
192}
193
194/**
195 * 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