4 ms·
That's not paranoid! That's a fantastic thing to do and one that I highly recommend for anyone. It's terribly easy to forget which environment you're working in
by zaphod12 9y ago
That's not paranoid! That's a fantastic thing to do and one that I highly recommend for anyone. It's terribly easy to forget which environment you're working in when you get distracted for a moment and that's how mistakes happen.
- protomyth 9y agoI went the whole nine yards on that project. I had white (black font) for my own machine, green for development, blue for integration test, yellow for system test, and red for production. I liked the green / white text theme the most with blue being my second favorite to write code in so those got the ones I would use the most. I was never a lover of the old amber terminals and red is just plain painful to write on. I guess the more pain your terminal causes you, the more dangerous the environment.
- wsinks 9y agoWas it automated? If so, how?
- rocky1138 9y agoIt doesn't help the terminal itself, but changing your ~/.vimrc to use different themes can help.
- tbirrell 9y agoI have a similar setup, and it is relatively easy to set up using .bashrc and terminal color variables.
- throwanem 9y agoI did something similar with a shell script for MySQL databases, both to support shorthand invocation (i.e. "mysql foo-bar-baz" to look up the named configuration, expand it into whatever set of arguments is defined therein, and invoke mysql(1) accordingly), and to allow for detailed and environment-specific prompts which warn me when I'm targeting production. It's hideous, of course. But it works very well for me, and I don't suppose I'd be averse, if interest becomes evident, to sharing it somewhere for others to benefit from and/or peruse in horrified fascination.
- throwanem 9y agoIt's more hideous than I remembered! But for anyone interested, here you are: https://gist.github.com/anonymous/8ec128e88dac85d93ed58fb518b2c705 https://gist.github.com/anonymous/8ec128e88dac85d93ed58fb518... Outside GNU coreutils, the only dependencies are mysql(1) (of course) and jq(1), which is more or less "awk for JSON" and which I strongly recommend to anyone who regularly deals with that file format. Share and Enjoy!
- toomuchtodo 9y agoUse config management to render the proper shell config per user.
- protomyth 9y agoI cannot remember the terminal program, but I had a file that set the colors and logged me in to the environment then set a bunch of variables. I was on a NT then 2000 box. Might have been a version of teraterm.
- caseydurfee 9y agoI use a little shell script to send iTerm2 proprietary escape codes to change the color of the terminal window based on the value of $*. https://iterm2.com/documentation-escape-codes.html https://iterm2.com/documentation-escape-codes.html
- deleted 9y ago[deleted]
- Evolved 9y agoIt may not be a coincidence that you preferred the green with white text theme the most. [0] [0] https://biology.stackexchange.com/questions/3871/which-shades-hues-of-color-are-easiest-to-distinguish-for-humans https://biology.stackexchange.com/questions/3871/which-shade...
- protomyth 9y agoInteresting link. I chalked it up to a misspent youth on green terminals, but I do like the idea its really science.