diff options
| author | Aiden Cline <[email protected]> | 2025-08-13 16:04:32 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-13 17:04:32 -0400 |
| commit | 118617473e874b30870dd42bdcaf7938d6fdf74e (patch) | |
| tree | 291433988ab3e7477641923464e3bd0407b0418b | |
| parent | a4beb60e19996f08062b1fa8bb0ea2c5e614d64a (diff) | |
| download | opencode-118617473e874b30870dd42bdcaf7938d6fdf74e.tar.gz opencode-118617473e874b30870dd42bdcaf7938d6fdf74e.zip | |
fix: bash should hide stdout from zshrc (#1909)
| -rw-r--r-- | packages/opencode/src/session/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts index ea51ce029..41352f8b6 100644 --- a/packages/opencode/src/session/index.ts +++ b/packages/opencode/src/session/index.ts @@ -1051,10 +1051,10 @@ export namespace Session { await updatePart(part) const app = App.info() const script = ` - [[ -f ~/.zshrc ]] && source ~/.zshrc 2>/dev/null || true - [[ -f ~/.bashrc ]] && source ~/.bashrc 2>/dev/null || true - eval "${input.command}" - ` + [[ -f ~/.zshrc ]] && source ~/.zshrc >/dev/null 2>&1 || true + [[ -f ~/.bashrc ]] && source ~/.bashrc >/dev/null 2>&1 || true + eval "${input.command}" + ` const proc = spawn(process.env["SHELL"] ?? "bash", ["-c", "-l", script], { cwd: app.path.cwd, signal: abort.signal, |
