Skip to content

Instantly share code, notes, and snippets.

@ernix
ernix / vsh.sh
Created December 26, 2010 04:48
Set OSX terminal window background color per SSH hosts.
#!/bin/sh
#--------------------------------------------------------------------#
# Set OSX terminal window background color per SSH hosts.
#--------------------------------------------------------------------#
change_bgcolor () {
case $1 in
red)
osascript -e 'tell app "Terminal" to set background color of first window to {17655, 0, 0, -16373}';;