MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getShellConfigPaths

Function getShellConfigPaths

source code/utils/shellConfig.ts:28–39  ·  view source on GitHub ↗
(
  options?: ShellConfigOptions,
)

Source from the content-addressed store, hash-verified

26 * @param options Optional overrides for testing (env, homedir)
27 */
28export function getShellConfigPaths(
29 options?: ShellConfigOptions,
30): Record<string, string> {
31 const home = options?.homedir ?? osHomedir()
32 const env = options?.env ?? process.env
33 const zshConfigDir = env.ZDOTDIR || home
34 return {
35 zsh: join(zshConfigDir, '.zshrc'),
36 bash: join(home, '.bashrc'),
37 fish: join(home, '.config/fish/config.fish'),
38 }
39}
40
41/**
42 * 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