Skip to content

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

jkomyno7198dcce8d7a
diff --git a/ts/packages/cli/src/commands/install.cmd.ts b/ts/packages/cli/src/commands/install.cmd.ts
index 1406c0741..64fb2af4e 100644
--- a/ts/packages/cli/src/commands/install.cmd.ts
+++ b/ts/packages/cli/src/commands/install.cmd.ts
@@ -190,6 +190,12 @@ const pathFilesForShell = (
case 'fish':
return [path.join(homedir, '.config', 'fish', 'config.fish')];
case 'bash': {
+ // Bash is the only shell here that splits startup files by mode: an
+ // interactive non-login shell reads .bashrc, while a login shell (ssh,
+ // macOS Terminal.app) reads only its login files. Writing .bashrc alone
+ // would leave PATH unset in login shells whenever an override file
+ // shadows .profile, so the block lands in both. The override also stays
+ // a named value because the restart hint reports it separately.
const bashrc = path.join(homedir, '.bashrc');
return bashLoginOverride ? [bashrc, bashLoginOverride] : [bashrc];
}