sorin-ionescu / prezto

The configuration framework for Zsh
MIT License
13.98k stars 4.49k forks source link

broken on windows #2016

Open Zamiell opened 2 years ago

Zamiell commented 2 years ago

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 commented 1 year ago

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 commented 9 months ago

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 commented 3 weeks ago

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. 图片