Make a note that cwd reporting is builtin to fish
This commit is contained in:
parent
47b3c37bf0
commit
e944e2ecae
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue