Is it possible to set the theme of the OS X Terminal depending on what you are doing? I would like to have visual cues to avoid making mistakes.

For example,

  • "pro" theme as default
  • "blue" if you are connected to another server via SSH
  • "red" if you have root rights
  • et cetera
link|improve this question
feedback

1 Answer

You can do what I suggest in this answer and programmatically change the themes of Terminal. Combine with shell aliases, scripts or functions that wrap calls to e.g. ssh to have automated theme changes.


You can also configure themes to execute specific commands when they're launched, so you get an "SSH Theme" executing ssh, a "root theme" that automatically runs sudo bash or something similar.

enter image description here

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.