acomagu / fish-async-prompt

Make your prompt asynchronous to improve the reactivity.
MIT License
389 stars 22 forks source link

"kill: No such process" error when the shell is exited #65

Closed amok closed 1 year ago

amok commented 1 year ago

When opening a sub-shell and closing it quickly error message "kill: XXXXX No such process" is printed. Here is a demo of this (right after starting sub-shell Ctrl+D is pressed)

https://user-images.githubusercontent.com/1369559/216029662-7bcd62ab-a628-4221-979d-94896333b16d.mp4

It looks like these lines https://github.com/acomagu/fish-async-prompt/blob/b866f232a4a5ded7e16cda648648c43925c01ba0/conf.d/__async_prompt.fish#L133-L137

trigger repaint on a terminated shell, so kill shows an error message

https://github.com/acomagu/fish-async-prompt/blob/b866f232a4a5ded7e16cda648648c43925c01ba0/conf.d/__async_prompt.fish#L55-L57