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

@@ -190,13 +190,11 @@ update-checking
shell-integration
|kitty| by default injects its :ref:`shell_integration` code into the user's
shell using environment variables or (for bash only) modifying
the user's :file:`~/.bashrc` file.
For a package, it might make more sense to distribute the shell
integration scripts into the system-wide shell vendor locations. The
shell integration files are found in the :file:`shell-integration`
directory. Copy them to the system wide shell vendor locations for each
shell, and use::
shell using environment variables. For a package, it might make more sense
to distribute the shell integration scripts into the system-wide shell
vendor locations. The shell integration files are found in the
:file:`shell-integration` directory. Copy them to the system wide shell
vendor locations for each shell, and use::
./setup.py linux-package --shell-integration=enabled\ no-rc