looks interesting, but it doesn't seem to be compatible with either my setup in general (bash 3.2.25 inside screen inside PuTTY) or my current prompt, which comes out of a shell function and embeds the number of files in pwd, username@hostname:pwd, and previous status, with coloring applied to various parts.
specifically your function just sort of sits there doing nothing when i try it....
specifically your function just sort of sits there doing nothing when i try it....