From 2f727e6561facc9a46443f7bb8eb98d1a4611fa9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 11 Feb 2024 18:27:46 +0530 Subject: [PATCH] ... --- tools/tui/shell_integration/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tui/shell_integration/api.go b/tools/tui/shell_integration/api.go index 9a28bfc52..beb004b60 100644 --- a/tools/tui/shell_integration/api.go +++ b/tools/tui/shell_integration/api.go @@ -327,7 +327,7 @@ func bash_setup_func(shell_integration_dir string, argv []string, env map[string } argv = slices.Insert(argv, 1, `--posix`) - if bashrc := os.Getenv(`KITTY_RUNNING_BASH_INTEGRATION_TEST`); bashrc != `` { + if bashrc := os.Getenv(`KITTY_RUNNING_BASH_INTEGRATION_TEST`); bashrc != `` && os.Getenv("KITTY_RUNNING_SHELL_INTEGRATION_TEST") == "1" { // prevent bash from sourcing /etc/profile which is not under our control env[`KITTY_BASH_INJECT`] += ` posix` env[`KITTY_BASH_POSIX_ENV`] = bashrc