acomagu / fish-async-prompt

Make your prompt asynchronous to improve the reactivity.
MIT License
412 stars 25 forks source link

$SHLVL is underreported by one #56

Closed neersighted closed 2 years ago

neersighted commented 2 years ago

The SHLVL passed to the prompt function is decremented 1 from the real SHLVL, even reaching 0 in the root shell.

acomagu commented 2 years ago

OK, this change affected.

https://github.com/fish-shell/fish-shell/commit/e1d19cf5714c5282069c6e847783ccb9410ab825

acomagu commented 2 years ago

Thanks!