From c05c0353fdc118e1934b1d1291b943e197338a72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Mar 2022 20:34:18 +0530 Subject: [PATCH] Dont report directory changes during command substitution --- .../fish/vendor_conf.d/kitty-shell-integration.fish | 1 + 1 file changed, 1 insertion(+) 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 165682607..48148ee67 100644 --- a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish +++ b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish @@ -100,6 +100,7 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after # This is actually builtin to fish but stupidly gated on TERM # https://github.com/fish-shell/fish-shell/blob/master/share/functions/__fish_config_interactive.fish#L257 function __ksi_report_cwd --on-variable PWD --description "Report PWD changes to the terminal" + status --is-command-substitution; and return echo -en "\e]7;kitty-shell-cwd://$hostname$PWD\a" end __ksi_report_cwd