...
This commit is contained in:
parent
b65a5f78fd
commit
2f727e6561
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue