Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-disable-zsh-history-expansion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

fix: disable zsh history expansion (#4926)
4 changes: 4 additions & 0 deletions src/integrations/terminal/ShellIntegrationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export class ShellIntegrationManager {

const zshrcContent = `
source "${shellIntegrationPath}"
# Disable history expansion (!) to prevent commands with ! from failing
# Fixes issue where commands like --collectCoverageFrom="!pattern" would fail
# with "event not found" error
setopt NO_BANG_HIST
ZDOTDIR=\${ROO_ZDOTDIR:-$HOME}
unset ROO_ZDOTDIR
[ -f "$ZDOTDIR/.zshenv" ] && source "$ZDOTDIR/.zshenv"
Expand Down
Loading