bash-git-prompt
bash-git-prompt copied to clipboard
Resetting PROMPT_START/PROMPT_END on exit
/fixes #539
The issue seems to be caused by the logic here: https://github.com/magicmonty/bash-git-prompt/blob/51080c22b2cebb63111379f4eacd22cda199684b/gitprompt.sh#L249-L272
Basically, the values of both PROMPT_START and PROMPT_END are being set accordingly when entering a git repository, but never being reset to their original values upon exiting.
This PR adds a couple lines to capture the original values of PROMPT_START and PROMPT_END on the way in and then resets the values accordingly on the way out.
Similar findings to #542.
Tested on F-39 and it works as expected.
This is also working for me. I hope this gets merged soon, as it is better than #542, since it handles both start AND end.
Hello. This is working for me. Hope it will be merged.
/fixes #548 /fixes #550
It worked for me also, tested on Fedora 39
Yeah, at this point the fix has been verified. We just need it to actually get merged by @magicmonty ;)
Hopefully soon, but in the meantime I just keep manually applying the fix as needed on my systems.
I can confirm this worked for me on Fedora 40.
I can also confirm this works for me on Fedora 40
Works for me too on Fedora 40