3 ms·
It seems fast enough but once you enter an actual directory of code where it needs to get the version of node, kotlin, package, etc it slows down noticeably. I'
by antihero 6y ago
It seems fast enough but once you enter an actual directory of code where it needs to get the version of node, kotlin, package, etc it slows down noticeably. I've ended up disabling most packages because it is absurd to (I assume) be running node --version every time a prompt is generated.
It's a shame they can't do these things asyncronously or cache them.
- eurg 6y agoCaching is a bit dangerous, and most shells don't support asynchronous prompt updates. And cross-shell support seems to be a prime feature. Spending probably a lot of effort just for improving zsh experience might just not have been important enough yet.
- antihero 6y agoYeah, it is tricky. Perhaps if the prompt was generated async? Turns out my main issue was due to having a slow node --version command due to using asdf! This project was a huge help: https://github.com/danhper/asdf-exec https://github.com/danhper/asdf-exec