bashrc: set prompt colours based on function

Previously the prompt colours were specified by colour, now they're specified
based on what they're doing in the prompt so changes between machines can be
more easily made.