From 1e0269faa2fd5baf6a9d04c21523fc309f8805a1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 23 Jul 2021 22:40:06 +0530 Subject: [PATCH] Fix sourcing of shell integration changing $? on bash/zsh --- kitty/shell_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/shell_integration.py b/kitty/shell_integration.py index a26e52169..ca5ccc8df 100644 --- a/kitty/shell_integration.py +++ b/kitty/shell_integration.py @@ -17,7 +17,7 @@ from .utils import log_error, resolved_shell posix_template = ''' # BEGIN_KITTY_SHELL_INTEGRATION -test -e {path} && source {path} +if test -e {path}; then source {path}; fi # END_KITTY_SHELL_INTEGRATION '''