I was thinking about how to synchronize my home dirs and ended up having them now under revision control with git.
The blog post Don’t Reinvent the Wheel describes how to make use of the git provided script git-sh-prompt
and replace the default PS1
with a PROMPT_COMMAND
.