In Terminal.app you can create a different settings value for each use, that is, a different colored background or other functions for connecting to different hosts or for launching various applications. The Profiles feature in iTerm provides a similar object, possibly easier to use or more transparent. Since you can run a script when a parameter or profile is used, any changes to the appearance of the terminal can be made by attaching the appropriate script.
Alternatively, you can set the prompt to appear differently by configuring PS1 in .bashrc or / etc / bashrc (or the local version). There's a similar question (also in Stackoverflow) in What is your favorite Bash hint? , which tells how to set the background color as well as the color of the text. I basically adjusted the color of the text in .bashrc (or basically / etc / bashrc) and set the background in the terminal settings / iTerm / profiles.
Since there are usually very few users, and we generally agree on what the Bash prompt looks like, I like to use the global settings in / etc. On some systems, the user is not recommended to modify / etc / bashrc directly, but instead gives the key to creating / etc / bash.bashrc.local or some such. Other systems do not have a global default. For systems without a global default, I create / etc / bashrc, which calls / etc / bash.bashrc.local, but hardly anything else.
And the previous answer indicated that the settings in Terminal.app work for Leopard and Snow Leopard, but were not sure about Tiger. I use this feature in Mavericks and I am sure that Lion and Mountain Lion were almost identical.
source share