From 1460a69ae9d47d6af01edd8991b99288b7a04395 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Aug 2025 09:57:51 +0530 Subject: [PATCH] unset KITTY_SI_RUN_COMMAND_AT_STARTUP when running the command --- .../fish/vendor_conf.d/kitty-shell-integration.fish | 3 ++- 1 file changed, 2 insertions(+), 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 1a240843a..e48b8f791 100644 --- a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish +++ b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish @@ -27,8 +27,9 @@ or echo -en \eP@kitty-print\|V2FybmluZzogVXBkYXRlIGZpc2ggdG8gdmVyc2lvbiAzLjMuMCs if test -n "$KITTY_SI_RUN_COMMAND_AT_STARTUP" printf '\e]2;%s\a' (string replace -ra '[\x00-\x1F\x7F]' '' -- "$KITTY_SI_RUN_COMMAND_AT_STARTUP") - eval "$KITTY_SI_RUN_COMMAND_AT_STARTUP" + set --local _krcs "$KITTY_SI_RUN_COMMAND_AT_STARTUP" set --erase KITTY_SI_RUN_COMMAND_AT_STARTUP + eval "$_krcs" end function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after other scripts have run, we hope"