Color Coded iTerm2 Windows

2014 Nov 03, Timid Robot Zehta

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: TimidRobot/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

Tags

Mastodon