bash-git-prompt
bash-git-prompt copied to clipboard
Allow to coexist other PROMPT_COMMAND(s) relying on command exit status
If any script saved in PROMPT_COMMAND wants to know last command exit status (without using GIT_PROMPT_LAST_COMMAND_STATE, but based on "$?" shell variable) after installing bash-git-prompt it stopped working, because "$?" variable was set to success after assigning GIT_PROMPT_LAST_COMMAND_STATE variable.
This PR fixes it.
Reopening again PR #457 under new name, as need master branch in my forked repository :-)