This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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}';; |
NewerOlder