Created
August 14, 2026 03:40
-
-
Save VictorXLR/bdf55b47d610cd3bdc2791895ea56ca1 to your computer and use it in GitHub Desktop.
zprofile_random_tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Function to set terminal tab color | |
| function tabcolor { | |
| echo -n -e "\033]6;1;bg;red;brightness;$1\a" | |
| echo -n -e "\033]6;1;bg;green;brightness;$2\a" | |
| echo -n -e "\033]6;1;bg;blue;brightness;$3\a" | |
| } | |
| # Set a random tab color on each new terminal session | |
| tabcolor $(jot -r 1 0 255) $(jot -r 1 0 255) $(jot -r 1 0 255) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment