Simplify fish prompt state checking

This commit is contained in:
pagedown 2022-03-16 01:03:16 +08:00
parent 82de6a1c56
commit 736d6cf7e6
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -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"