prezto
prezto copied to clipboard
Switch to an alternative method of async git in the sorin prompt
Fixes #1795, maybe #1493
Proposed Changes
- Update sorin prompt to use zle callbacks rather than zsh-async
This should fix a number of random, hard to debug issues we've had with zsh-async and may improve Windows support. It doesn't get updates super often either so it may be worth investigating removing it completely if we can.
The code here is based off a simplified version of the code in autosuggestions mentioned here: https://github.com/mafredri/zsh-async/issues/24
Which doesn't get updates?
zsh-async
orzle
zsh-async. There are people saying reverting to 1.1 fixes the issue but that’s a really old release and there have been a ton of fixes since then.
Yeah, there are obviously some bugs... it was a quick implementation thrown together in an hour and it’s hard for me to debug this because I don’t have a windows machine available at the moment.
@belak Is this still relevant given that #1810 appears to fix the root issue? Or were there other problems with zsh-async
such that you want to continue pursuing this?
As far as I know, the fix for zsh-async still doesn't fix the zsh hang on exit with windows because (by design) there's a process still running to handle git information. I'm not sure if this is worth pursuing or not.
Gotcha... yeah, Idk either... Microsoft/windows has been changing a lot to be more linux-friendly, I would probably vote to let this sit a bit and see if they provide easier hooks to do that. This would be years in the future, so if someone urgently wanted it and came up with a way, I wouldn't be opposed, but otherwise not something I'd pursue...