Changing your terminal’s appearance based on environment variables

I’m scared of the production database. Anyone else? I can copy the production database down to my local instance anytime I want, so I have an up-to-date version I can work off of while developing locally, but sometimes I actually need to make changes in production. This is fine, but I get nervous that I’ll do that, and then continue working off of production, when I don’t mean to. (No matter how careful I am, I am human, and humans make mistakes). So I decided to protect myself from … myself.