Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question

migrated from 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:… – 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

3 Answers 3

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

Programmatically launch with a specified command (and custom colors).

share|improve this answer

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

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.