4 ms·
Awesome. I wonder if we can do the same thing in terminals(iterm/terminal) when we connected to prod hosts via SSH.
by neduma 9y ago
Awesome. I wonder if we can do the same thing in terminals(iterm/terminal) when we connected to prod hosts via SSH.
- fej-snikduj 9y agoThat would be great. Good idea.
- avitzurel 9y agoYou can http://bryangilbert.com/post/etc/term/dynamic-ssh-terminal-background-colors/ http://bryangilbert.com/post/etc/term/dynamic-ssh-terminal-b...
- ssawa 9y agoThat's one of the reasons I made the switch to iterm: https://www.iterm2.com/documentation-automatic-profile-switching.html https://www.iterm2.com/documentation-automatic-profile-switc... The actual automatic profile switching can be a bit of a pain because you need to install the integration on each machine you ssh into. But iterm also gives you access to a bunch of proprietary escape codes, so I was able to just wrap ssh in an alias that would automatically change my terminal colors and display the ssh command as a badge in the corner to keep my dumb ass from accidentally screwing up a server.