2014-11-03

Color Coded iTerm2 Windows

As a systems administrator, I often have many many terminal windows open. To help ensure I am fully aware of which of them are on Production hosts, I color code them.

I have finally taken that bit of helpful code and made it as easy for you, dear reader, to use: TimZehta/painted-iterm.


Some of the neat things I learned about during the course of this project:

  • 256 terminal colors
  • Bash
    • PROMPT_COMMAND
    • clean/simple way to remove leading zeros
  • SSH LocalCommand