summaryrefslogtreecommitdiff
path: root/lib/async_prompt.zsh
AgeCommit message (Collapse)Author
2024-04-22fix(async): fix crash on zsh < 5.0.6 (#12358)Marc Cornellà
2024-04-04perf(async): avoid executing `true` if not required (#12318)Loïc Yhuel
The issue which required "command true" was fixed in zsh 5.8.
2024-04-03fix(async): avoid blocking the shell while waiting (#12304)Loïc Yhuel
Co-authored-by: Marc Cornellà <marc@mcornella.com>
2024-03-09fix(async): register the git prompt async handler correctly (#12267)Marc Cornellà
This fix conditionally registers the git prompt async handler only if `git_prompt_info` is used anywhere in the prompt variables. This is done in the proper order, so that the async request is processed once the handler has been registered. This fix also passes the return value of the previous command to each of the async handlers, in case they are needed.
2024-03-07feat(async)!: implement async prompt API and apply to git prompt (#12257)Marc Cornellà
BREAKING CHANGE: the `git_prompt_info` prompt function has been reworked by default to use the new async prompt feature. If you're experiencing issues see #12257. Co-authored-by: Carlo Sala <carlosalag@protonmail.com>