Docs: no-cwd will not disable fish's built-in CWD reporting

This commit is contained in:
pagedown 2022-03-18 11:10:21 +08:00
parent 06da2b88ff
commit 901eae9604
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
2 changed files with 3 additions and 1 deletions

View File

@ -72,6 +72,8 @@ no-cwd
:ac:`new_window_with_cwd` and similar to open windows logged
into remote machines using the :doc:`ssh kitten <kittens/ssh>`
automatically with the same working directory as the current window.
Note that for the ``fish`` shell this will not disable its built-in current
working directory reporting.
no-prompt-mark
Turn off marking of prompts. This disables jumping to prompt, browsing

View File

@ -97,7 +97,7 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after
# Enable CWD reporting
if not contains "no-cwd" $_ksi
# This function name is from fish and will override the builtin one if fish enabled this feature by default.
# This function name is from fish and will override the builtin one, which is enabled by default for kitty in fish 3.5.0+.
# We provide this to ensure that fish 3.2.0 and above will work.
# https://github.com/fish-shell/fish-shell/blob/3.2.0/share/functions/__fish_config_interactive.fish#L275
function __update_cwd_osc --on-variable PWD -d "Report PWD changes to kitty"