From e944e2ecaec728a248352146711cb65a956f29c9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Mar 2022 20:33:14 +0530 Subject: [PATCH] Make a note that cwd reporting is builtin to fish --- .../fish/vendor_conf.d/kitty-shell-integration.fish | 2 ++ 1 file changed, 2 insertions(+) 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 6370d19d4..165682607 100644 --- a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish +++ b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish @@ -97,6 +97,8 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after # Enable CWD reporting if not contains "no-cwd" $_ksi + # 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" echo -en "\e]7;kitty-shell-cwd://$hostname$PWD\a" end