Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken on windows #2016

Open
Zamiell opened this issue Aug 31, 2022 · 4 comments · May be fixed by #2097
Open

broken on windows #2016

Zamiell opened this issue Aug 31, 2022 · 4 comments · May be fixed by #2097

Comments

@Zamiell
Copy link

Zamiell commented Aug 31, 2022

Description

Prezto throws a bunch of errors upon upon running it for the first time (and every subsequent time) after a fresh installation.

async:1: no such file or directory: ../external/async/async.zsh
prompt_sorin_async_tasks:4: command not found: async_start_worker
prompt_sorin_async_tasks:5: command not found: async_register_callback
prompt_sorin_async_tasks:10: command not found: async_flush_jobs
prompt_sorin_async_tasks:13: command not found: async_job
~ ❯❯❯

Steps to Reproduce

Versions

Latest at the time of this writing.

@jeffwidman
Copy link
Collaborator

AFAIK, none of the current maintainers use prezto on windows, so we aren't able to help debug unfortunately. If you do track it down further, we'd welcome either a code fix or docs improvement as appropriate.

@geezmolycos
Copy link

geezmolycos commented Dec 14, 2023

Git for windows cannot create symlinks by default. Several scripts under modules/prompt/functions uses symlinks to link file in submodules and git for windows clone those as dummy files, you should replace those dummy files with symlinks (or just copy the scripts) manually

@Fpointzero
Copy link

in fact,just change the command at project,./modules/prompt/functions, change "../external/async/async.zsh" (e.g) to "source ${ZPREZTODIR}/modules/prompt/external/async/async.zsh". then you can use it at windows.
图片

@techwoes
Copy link

techwoes commented Nov 5, 2024

This fixed my issue and wasn't easy to find via a web search on google. Maybe some comment in the README.md might be useful for people using msys2 on windows? Or point them at this issue as a proposed solution even if it's not ideal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants