sunaku / home

🏡 My $HOME directory (dot files & bin scripts)
https://sunaku.github.io/about.html#unix-shell-environment
139 stars 16 forks source link

Async update git info? #3

Closed tmpm697 closed 4 years ago

tmpm697 commented 4 years ago

https://github.com/sunaku/home/blob/68c5c638df4857f0d09a2c93f744655b6ee389e1/.zsh/config/prompt.zsh#L35

Sorin promt from prezto use async to do git and it faster than your config (~0.01 - 0.03s), Is there a way to mitigrate your current setup to use async?

https://github.com/sorin-ionescu/prezto/blob/master/modules/prompt/functions/prompt_sorin_setup

sunaku commented 4 years ago

Yes, it should be possible to make vcs_info asynchronous: https://vincent.bernat.ch/en/blog/2019-zsh-async-vcs-info

sunaku commented 4 years ago

Solved in commit ddb97d3ae39901140c2b15aad8357877d9490a12. :neckbeard: Thanks for suggesting this. :+1: