Simplify fish prompt state checking
This commit is contained in:
parent
82de6a1c56
commit
736d6cf7e6
@ -73,7 +73,7 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after
|
|||||||
if not contains "no-prompt-mark" $_ksi
|
if not contains "no-prompt-mark" $_ksi
|
||||||
and not set -q __ksi_prompt_state
|
and not set -q __ksi_prompt_state
|
||||||
function __ksi_mark_prompt_start --on-event fish_prompt
|
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"
|
and echo -en "\e]133;D\a"
|
||||||
set --global __ksi_prompt_state prompt-start
|
set --global __ksi_prompt_state prompt-start
|
||||||
echo -en "\e]133;A\a"
|
echo -en "\e]133;A\a"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user