From 1994c17c750dffb5306c4d86704dfa8277367730 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 18 Apr 2022 12:08:32 +0530 Subject: [PATCH] Note on how clone-in-kitty works --- docs/shell-integration.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/shell-integration.rst b/docs/shell-integration.rst index 5343d0ede..545e10f2e 100644 --- a/docs/shell-integration.rst +++ b/docs/shell-integration.rst @@ -253,6 +253,10 @@ that file to be sourced in the cloned window. Similarly, setting run in the cloned window with :code:`eval`. This can be controlled by :opt:`clone_source_strategies`. +:file:`clone-in-kitty` works by asking the shell to serialize its internal +state (mainly CWD and env vars) and this state is transmitted to kitty and +restored by the shell integration scripts in the cloned window. + .. _manual_shell_integration: