Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So the only reason I switched to iTerm2 was because I wanted my terminal to change color when I ssh into different hosts. If I ssh into my work machine the terminal turns blue. If I ssh into my home machine the terminal turns purple. I'd tried to do this with the default terminal but ran into issues with it getting confused depending on how a session ended. People suggested iTerm2 because it supposedly solves this. And it does, at least for me.


How do you do this? Didn't know about this feature.



This! I've played with wezterm and ghostty but haven't been able to get this working there, so I keep coming back to iTerm2 for this exact feature - so that prod servers have a red background, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: