From 736d6cf7e6a94a86b051c5462768f681960a8b7a Mon Sep 17 00:00:00 2001 From: pagedown Date: Wed, 16 Mar 2022 01:03:16 +0800 Subject: [PATCH] Simplify fish prompt state checking --- .../fish/vendor_conf.d/kitty-shell-integration.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish index 48148ee67..47ddca061 100644 --- a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish +++ b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish @@ -73,7 +73,7 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after if not contains "no-prompt-mark" $_ksi and not set -q __ksi_prompt_state function __ksi_mark_prompt_start --on-event fish_prompt - contains "$__ksi_prompt_state" post-exec pre-exec "" + test "$__ksi_prompt_state" != prompt-start and echo -en "\e]133;D\a" set --global __ksi_prompt_state prompt-start echo -en "\e]133;A\a"