( options?: ShellConfigOptions, )
| 24 | * @param options Optional overrides for testing (env, homedir) |
| 25 | */ |
| 26 | export 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 |
no outgoing calls
no test coverage detected