Git rprompt appears to be acting unexpectedly, but this is good enough.