mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-02 19:42:38 +00:00
I noticed that both wezterm[0] and the OSC 133 reference script[1] (upon which wezterm and our bash integration appear to be based) always send the "end of prompt" sequence in their precmd functions (except during their first execution, when no previous command has been executed). This is a subtle logical difference: `$_ghostty_executing=""` (first run) versus `$_ghostty_executing="0"` (reentrancy check). I'm not sure how much a difference it makes except in rare edge case scenarios, but I think it makes sense to be consistent and always report the end of the current command. [0] https://github.com/wez/wezterm/blob/main/assets/shell-integration/wezterm.sh#L479 [1] https://gitlab.freedesktop.org/Per_Bothner/specifications/-/blob/master/proposals/prompts-data/shell-integration.bash