Skip to content

Commit 7267e6c

Browse files
committed
refactor(server): shorten bash login-shell rationale
1 parent 6e107a2 commit 7267e6c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎apps/server/src/terminal/Manager.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,7 @@ function shellCandidateFromCommand(
526526
if (platform !== "win32" && shellName === "zsh") {
527527
return { shell: command, args: ["-o", "nopromptsp"] };
528528
}
529-
// macOS terminals start bash as a login shell, so users keep their setup in ~/.bash_profile,
530-
// which a plain interactive bash never reads.
529+
// Login shells load ~/.bash_profile, matching macOS terminal startup.
531530
if (platform === "darwin" && shellName === "bash") {
532531
return { shell: command, args: ["-l"] };
533532
}

0 commit comments

Comments
 (0)