Skip to content

Instantly share code, notes, and snippets.

@VictorXLR
Created August 14, 2026 03:40
Show Gist options
  • Select an option

  • Save VictorXLR/bdf55b47d610cd3bdc2791895ea56ca1 to your computer and use it in GitHub Desktop.

Select an option

Save VictorXLR/bdf55b47d610cd3bdc2791895ea56ca1 to your computer and use it in GitHub Desktop.
zprofile_random_tabs
# 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