bash-git-prompt icon indicating copy to clipboard operation
bash-git-prompt copied to clipboard

Allow to coexist other PROMPT_COMMAND(s) relying on command exit status

Open mskalski opened this issue 6 years ago • 0 comments

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 :-)

mskalski avatar Dec 15 '19 06:12 mskalski