Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
docs(cli): explain the bash login-override special case
jkomyno committed
Aug 3, 2026 at 21:41 UTC
7198dcce8d7a5e1f3a90aae18f8422ba01d5c6f1
1 file changed
+6
ts/packages/cli/src/commands/install.cmd.ts
+6
@@ -190,6 +190,12 @@ const pathFilesForShell = (
190
case 'fish':
191
return [path.join(homedir, '.config', 'fish', 'config.fish')];
192
case 'bash': {
193
+ // Bash is the only shell here that splits startup files by mode: an
194
+ // interactive non-login shell reads .bashrc, while a login shell (ssh,
195
+ // macOS Terminal.app) reads only its login files. Writing .bashrc alone
196
+ // would leave PATH unset in login shells whenever an override file
197
+ // shadows .profile, so the block lands in both. The override also stays
198
+ // a named value because the restart hint reports it separately.
199
const bashrc = path.join(homedir, '.bashrc');
200
return bashLoginOverride ? [bashrc, bashLoginOverride] : [bashrc];
201
}