diff --git a/kitty/shell_integration.py b/kitty/shell_integration.py index 2794b1e02..19d95a6ec 100644 --- a/kitty/shell_integration.py +++ b/kitty/shell_integration.py @@ -172,7 +172,7 @@ def get_effective_ksi_env_var(opts: Optional[Options] = None) -> str: return '' # Use the default when shell_integration is empty due to misconfiguration if 'invalid' in opts.shell_integration: - return defaults.shell_integration + return ' '.join(defaults.shell_integration) return ' '.join(opts.shell_integration)