I use the Terminal app to connect to my company's AIX servers. I have several Terminal settings defined. Is it possible to use a default setting and tweek some attribute, say background and text color in a shell command?
Yes, I've got general settings, like screen size, font, etc. I'm interested in changing the background color and font color to differentiate production servers from test.
For instance I have aliases defined in my .bash_profile for ssh sessions to production and test environments. I typically run multiple windows and would like to know at a glance which is instance is which.
tell app "Terminal" to set background color of first tab of front window to {65535,0,0}
Shell command to do the same thing:
Code:
osascript -e 'tell app "Terminal" to set background color of first tab of front window to {65535,0,0}'
I assume you can work out the quoting, and how to do shell-variable replacement or other things. I also assume you know about RGB colors, which is what {65535,0,0} represents.