Hacker News new | ask | show | jobs
by phist_mcgee 743 days ago
Get into the habit of colour-coding your important SSH sessions, red/green/blue can give you a very powerful subconscious check before doing something very silly.
1 comments

How do you do this so that it lasts? I find mine resets to default
I use iTerm2 and have different profiles for different directories/remote hosts. iTerm switches the background colour automatically for me. I'm sure other terminal emulators would have similar features.

https://bsago.me/tech-notes/change-ssh-background-colour-wit....

Can’t you set it in the .zshrc file?