fix: bash should hide stdout from zshrc (#1909)

This commit is contained in:
Aiden Cline
2025-08-13 16:04:32 -05:00
committed by GitHub
parent a4beb60e19
commit 118617473e

View File

@@ -1051,8 +1051,8 @@ export namespace Session {
await updatePart(part) await updatePart(part)
const app = App.info() const app = App.info()
const script = ` const script = `
[[ -f ~/.zshrc ]] && source ~/.zshrc 2>/dev/null || true [[ -f ~/.zshrc ]] && source ~/.zshrc >/dev/null 2>&1 || true
[[ -f ~/.bashrc ]] && source ~/.bashrc 2>/dev/null || true [[ -f ~/.bashrc ]] && source ~/.bashrc >/dev/null 2>&1 || true
eval "${input.command}" eval "${input.command}"
` `
const proc = spawn(process.env["SHELL"] ?? "bash", ["-c", "-l", script], { const proc = spawn(process.env["SHELL"] ?? "bash", ["-c", "-l", script], {