3 ms·
Since it's a local shell doing something like this is a lot easier - just change $PS1 to add some colors when certain variables are set. I use something like t
by geofft 9y ago
Since it's a local shell doing something like this is a lot easier - just change $PS1 to add some colors when certain variables are set.
I use something like this today on my personal machine to distinguish between my personal and work email addresses in $EMAIL (for silly firewall reasons it's easier to originate work-owned OSS on my personal machine), and on my work machine to tell me which production zone I'm talking to - but I don't have it color when I have any variable set at all, I probably should do that.