From 2d4f7e3446eb19128a322684b70f0f6726d7280d Mon Sep 17 00:00:00 2001 From: pagedown Date: Sun, 27 Feb 2022 20:21:05 +0800 Subject: [PATCH] Disable system startup files in zsh integration test with --noglobalrcs --- kitty_tests/shell_integration.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kitty_tests/shell_integration.py b/kitty_tests/shell_integration.py index 8c398a611..09169a09d 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -50,9 +50,8 @@ def basic_shell_env(home_dir): def safe_env_for_running_shell(argv, home_dir, rc='', shell='zsh'): ans = basic_shell_env(home_dir) if shell == 'zsh': + argv.insert(1, '--noglobalrcs') ans['ZLE_RPROMPT_INDENT'] = '0' - with open(os.path.join(home_dir, '.zshenv'), 'w') as f: - print('unset GLOBAL_RCS', file=f) with open(os.path.join(home_dir, '.zshrc'), 'w') as f: print(rc + '\n', file=f) setup_zsh_env(ans, argv)