I'd like to have the background as black for server 'foo' but have the background be say gray or blue for server 'bar'.

I am worried I'll run the wrong command on the wrong ec2 instance because all the pwds are /home/ubuntu! How is everyone else solving this?

migrated from stackoverflow.com Mar 14 '11 at 11:43

This question came from our site for professional and enthusiast programmers.

  • Not an exact duplicate, but pretty close. See: apple.stackexchange.com/questions/9740/… – Ian C. Mar 14 '11 at 14:37
  • I want to do this too! In particular, I want the .login on each remote system to send the correct escape sequence to change the background colors. However, when I log out, I want the old colors restored... – vy32 Jul 3 '12 at 19:17

Use different bash scripts to launch each session and change the background color depending on the server.



you can use a script to connect to your servers, which also changes the bg color of your terminal before it connects.



You may use iTerm2 bookmarks, where you can customize each bookmark with its own settings!

You must log in to answer this question.