From e7846f916ab5a656cbe23b32f752f4e260e2a7ff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 22 Feb 2022 21:37:50 +0530 Subject: [PATCH] Cleanup how it works for bash --- docs/shell-integration.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/shell-integration.rst b/docs/shell-integration.rst index 5629841e0..d0d2800ff 100644 --- a/docs/shell-integration.rst +++ b/docs/shell-integration.rst @@ -148,10 +148,12 @@ different shells. .. tab:: bash - For bash, kitty starts bash in POSIX mode and implements the loading of the - bash startup files in the integration script itself, after disabling POSIX - mode. From the perspective of those scripts there should be no difference - to running vanilla bash. + For BASH, kitty starts bash in POSIX mode, using the environment variable + ``ENV`` to load the shell integrtion script. This prevents BASH from + loading any startup files itself. The loading of the startup files is done + by the integration script itself, after disabling POSIX mode. From the + perspective of those scripts there should be no difference to running + vanilla bash. Then, when launching the shell, kitty sets the environment variable