This plugin provides five functions for setting an iTerm2 tab's color and a title override:
iterm2_tab_colorwith aliastciterm2_tab_color_namedwith aliastcniterm2_tab_color_randomwith aliastcriterm2_tab_color_random_namedwith aliastcnr
and:
iterm2_tab_titlewith aliastt
See iterm2-tabs.zsh for more details, and examples.
Colors may be set either as RGB triples or as named colors, where the list of color names (from jacaetevha/finna-be-octo-hipster) is hard-coded - but accessible via tab completion.
tcn --show-colorsshows the list of available color names, along with a demo of each color;tcn --list-colorsjust shows the names; this is what tab completion triggers.
Most of the color-related work is done by a python script.
Note that (unlike previous versions of this plugin), some external machinery is needed to actually set tab titles using the function provided here; see comments in the plugin itself for more details.
Andy Gimblett, [email protected]. 2017-2024