Automatically setup shell integration for ZSH

This commit is contained in:
Kovid Goyal
2021-07-15 12:29:52 +05:30
parent 8a9234ba4f
commit 725ec57bee
4 changed files with 83 additions and 3 deletions

View File

@@ -227,6 +227,11 @@ class Child:
tdir = checked_terminfo_dir()
if tdir:
env['TERMINFO'] = tdir
opts = fast_data_types.get_options()
if opts.shell_integration != 'disabled':
from .shell_integration import get_supported_shell_name
if get_supported_shell_name(self.argv[0]):
env['KITTY_SHELL_INTEGRATION'] = opts.shell_integration
return env
def fork(self) -> Optional[int]: