Skip to content

Instantly share code, notes, and snippets.

@phillco
Forked from wadey/iterm2.zsh
Last active August 29, 2015 13:56
Show Gist options
  • Save phillco/8945840 to your computer and use it in GitHub Desktop.
Save phillco/8945840 to your computer and use it in GitHub Desktop.
Functions to set iTerm2 tab color in fish
function tab_color --description "Sets the current tab color. Usage: tab_color <r> <g> <b>"
echo -ne "\033]6;1;bg;red;brightness;$argv[1]\a"
echo -ne "\033]6;1;bg;green;brightness;$argv[2]\a"
echo -ne "\033]6;1;bg;blue;brightness;$argv[3]\a"
end
function tab_nocolor --description "Resets the current tab color."
echo -ne "\033]6;1;bg;*;default\a"
end
# tab_color 63 127 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment