Fix shell prepare running on macOS.

This commit is contained in:
John Preston 2025-03-26 13:22:54 +05:00
parent 627ff6f26e
commit dd76313084

View file

@ -447,7 +447,7 @@ if customRunCommand:
with tempfile.NamedTemporaryFile(mode='w', delete=False) as tmp_zshrc:
tmp_zshrc.write(f'export PS1="{prompt}"\n')
tmp_zshrc_path = tmp_zshrc.name
subprocess.run(['zsh', '--rcs', tmp_zshrc_path], env=modifiedEnv)
subprocess.run(['zsh', '--rcs', tmp_zshrc_path], shell=True, env=modifiedEnv)
os.remove(tmp_zshrc_path)
elif not run(' '.join(runCommand) + '\n'):
print('FAILED :(')