From d8ed42ae8e014d9abf9550a65ae203468f8bfa43 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 3 Mar 2022 19:16:44 +0530 Subject: [PATCH] Move setting of ZLE_RPROMPT_INDENT to zshrc which will hopefully prevent it being overriden --- 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 b0ccc0341..d930fbc41 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -51,9 +51,8 @@ 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, '.zshrc'), 'w') as f: - print(rc + '\n', file=f) + print(rc + '\nZLE_RPROMPT_INDENT=0', file=f) setup_zsh_env(ans, argv) elif shell == 'fish': conf_dir = os.path.join(home_dir, '.config', 'fish')