BASH integration: No longer modify .bashrc to load shell integration

I think I have things setup robustly so that the shell integration
is loaded transparently via env vars and the normal bash startup files
are sourced, in the same way that vanilla bash does it. Let's hope I
haven't overlooked something.
This commit is contained in:
Kovid Goyal
2022-02-22 21:24:51 +05:30
parent 4487462b0d
commit 88091b4ab3
8 changed files with 108 additions and 119 deletions

View File

@@ -148,8 +148,10 @@ different shells.
.. tab:: bash
For bash, kitty adds a couple of lines to the bottom of :file:`~/.bashrc`
(in an atomic manner) to load the shell integration code.
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.
Then, when launching the shell, kitty sets the environment variable