Skip to content

Instantly share code, notes, and snippets.

@GoldenStake
GoldenStake / .change-tab-color-pwd
Created April 24, 2023 16:31 — forked from jakeonrails/.change-tab-color-pwd
How to have change the tab color in iTerm2 based on what folder or directory you are in
#!/usr/bin/env python
"""
Set terminal tab / decoration color by the server name.
Get a random colour which matches the server name and use it for the tab colour:
the benefit is that each server gets a distinct color which you do not need
to configure beforehand.
"""