From e5e063c89d22da3ece5e7bc43797d3f0ff447717 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Mon, 16 Feb 2026 16:49:03 -0500 Subject: [PATCH] zsh: update PS1 substitution to include 'cl=line' Our PS1 cleanup code (where we remove any markers we added) was still looking for the previous 133;A form. Update it to include 'cl=line', which was added in 8595558. --- src/shell-integration/zsh/ghostty-integration | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-integration/zsh/ghostty-integration b/src/shell-integration/zsh/ghostty-integration index c17de669a..83ccb6854 100644 --- a/src/shell-integration/zsh/ghostty-integration +++ b/src/shell-integration/zsh/ghostty-integration @@ -188,7 +188,7 @@ _ghostty_deferred_init() { # our own prompt, user prompt, and our own prompt with user additions on # top. We cannot force prompt_subst on the user though, so we would # still need this code for the no_prompt_subst case. - PS1=${PS1//$'%{\e]133;A\a%}'} + PS1=${PS1//$'%{\e]133;A;cl=line\a%}'} PS1=${PS1//$'%{\e]133;A;k=s\a%}'} PS1=${PS1//$'%{\e]133;B\a%}'} PS2=${PS2//$'%{\e]133;A;k=s\a%}'}