Cleanup how it works for bash

This commit is contained in:
Kovid Goyal 2022-02-22 21:37:50 +05:30
parent d4f4d56f94
commit e7846f916a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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