Skip to content

Instantly share code, notes, and snippets.

View vertan's full-sized avatar
🦖

Filip Hedman vertan

🦖
View GitHub Profile
@vertan
vertan / ssh_badge
Created July 10, 2018 15:21
Dynamic Badge depending on environment in iTerm/SSH
# Put this in ~/.ssh/config
Host *.production.host.net
LocalCommand echo -e "\033]50;SetProfile=Production\a"
Host *.staging.host.net
LocalCommand printf "\033]50;SetProfile=Staging\a\e[0;m"
Host *
PermitLocalCommand yes
# End ~/.ssh/config