iterm2
is a command line tool to control iTerm2. You can change tab colors and titles with this command.
Install via Homebrew
brew tap suin/suin
brew install iterm2-cli
You can change tab colors by just run tab color $colorname
command like this:
$ iterm2 tab color light-blue
140+ colors are available. Type tab color
to show all available color names.
Run tab title $title
to change tab title.
$ iterm2 tab title my project