Move setting of ZLE_RPROMPT_INDENT to zshrc which will hopefully prevent it being overriden

This commit is contained in:
Kovid Goyal 2022-03-03 19:16:44 +05:30
parent 297592242c
commit d8ed42ae8e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -51,9 +51,8 @@ def safe_env_for_running_shell(argv, home_dir, rc='', shell='zsh'):
ans = basic_shell_env(home_dir) ans = basic_shell_env(home_dir)
if shell == 'zsh': if shell == 'zsh':
argv.insert(1, '--noglobalrcs') argv.insert(1, '--noglobalrcs')
ans['ZLE_RPROMPT_INDENT'] = '0'
with open(os.path.join(home_dir, '.zshrc'), 'w') as f: 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) setup_zsh_env(ans, argv)
elif shell == 'fish': elif shell == 'fish':
conf_dir = os.path.join(home_dir, '.config', 'fish') conf_dir = os.path.join(home_dir, '.config', 'fish')