I hate implicit function declarations, but it turns out bash doesn't even know what they are if they come after "then", so  I made it implicit.
personalized, cleaned up prompt by github.com/seefood: scm state, todo count and last exit code.