Move setting of ZLE_RPROMPT_INDENT to zshrc which will hopefully prevent it being overriden
This commit is contained in:
parent
297592242c
commit
d8ed42ae8e
@ -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')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user