From a1eb341817cc74af58ed6ef2c732ee182afe958e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 7 Nov 2021 10:25:13 +0530 Subject: [PATCH] ... --- kitty/shell_integration.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kitty/shell_integration.py b/kitty/shell_integration.py index 5ac608d04..8f94065b3 100644 --- a/kitty/shell_integration.py +++ b/kitty/shell_integration.py @@ -120,9 +120,7 @@ def setup_shell_integration(opts: Options, env: Dict[str, str]) -> bool: def modify_shell_environ(argv0: str, opts: Options, env: Dict[str, str]) -> None: shell = get_supported_shell_name(argv0) - if shell is None: - return - if 'disabled' in set(opts.shell_integration.split()): + if shell is None or 'disabled' in set(opts.shell_integration.split()): return env['KITTY_SHELL_INTEGRATION'] = opts.shell_integration if not shell_integration_allows_rc_modification(opts):