Using a modified version of @paulirish's bash prompt.

http://www.youtube.com/watch?v=vDbbz-BdyYc