(shellPath: string)
| 179 | } |
| 180 | |
| 181 | function 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) |
no outgoing calls
no test coverage detected