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

Function getShellConfigPaths

src/utils/shellConfig.ts:26–37  ·  view source on GitHub ↗
(
  options?: ShellConfigOptions,
)

Source from the content-addressed store, hash-verified

24 * @param options Optional overrides for testing (env, homedir)
25 */
26export function getShellConfigPaths(
27 options?: ShellConfigOptions,
28): Record<string, string> {
29 const home = options?.homedir ?? osHomedir()
30 const env = options?.env ?? process.env
31 const zshConfigDir = env.ZDOTDIR || home
32 return {
33 zsh: join(zshConfigDir, '.zshrc'),
34 bash: join(home, '.bashrc'),
35 fish: join(home, '.config/fish/config.fish'),
36 }
37}
38
39/**
40 * Filter out installer-created claude aliases from an array of lines

Callers 5

findClaudeAliasFunction · 0.85
checkInstallFunction · 0.85
cleanupShellAliasesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected