umayr / theme-sushi

Sushi theme for Fishshell.
MIT License
23 stars 20 forks source link

Support async-prompt #24

Open alyyousuf7 opened 3 years ago

alyyousuf7 commented 3 years ago

This adds support for async prompts.

Rationale: Over the time, support for a lots of new commands have been added to this theme, e.g. Terraform, Kubernetes and extra features for Git. Each of these features runs some commands and that takes time to execute. For slower CPUs, your productivity degrades because the prompt starts taking time and you have to wait before typing new commands.

This makes all of the time taking features to execute asynchronously and gives you access to prompt instantly.

To make this async thing to happen, the theme requires acomagu/fish-async-prompt to be installed. However if you do not have it installed, the theme will keep working as before.

Signed-off-by: Ali Yousuf aly.yousuf7@gmail.com

alyyousuf7 commented 3 years ago

Currently, the async-prompt repo has a bug due to which it will not work at the moment.

The fix is yet to be merged.