Skip to content

Instantly share code, notes, and snippets.

View andremacola's full-sized avatar
🔥
On Fire!!!!

André Mácola andremacola

🔥
On Fire!!!!
View GitHub Profile
@andremacola
andremacola / iterm2.zsh
Last active November 3, 2024 02:22 — forked from wadey/iterm2.zsh
Change iTerm2 tab color when using SSH
# Usage:
# source iterm2.zsh
# iTerm2 tab color commands
# https://iterm2.com/documentation-escape-codes.html
if [[ -n "$ITERM_SESSION_ID" ]]; then
declare -A SERVERS_TAB_COLORS=(
["srv1.domain.tld"]="255 165 0"
["srv2.domain.tld"]="0 14 156"