Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use my OS X machine to administer a couple of servers and like to keep open terminal.app to do this. I have my profile so i get a few tabs open as i open the terminal.app, is it possible to assign to each tab a different theme and different starting command so that i can automatically SSH to each of the boxes as i run terminal.app?

share|improve this question

3 Answers 3

up vote 5 down vote accepted

I haven't used Terminal.app since I discovered iTerm, which is free. It has customisable profiles and a bookmarks feature that might really help with what you need. Check it out...

share|improve this answer

Yes, it is possible. In "Terminal > Preferences > Settings", create a setting for each connection. In each of these, configure the appearance of the window (color scheme, etc) and specify the connection with "Shell > Startup > Run command". enter image description here

After you have created these settings, open whatever mix of windows and tabs that you want. You do this by using the "File > New Window" and "File > New Tab" and selecting the appropriate settings. Then save your window settings with "Window > Save Windows as Group...".

When you open this Window group, it will run the command that you specified in the Settings' startup commands, re-establishing those connections. You can open Window Groups from the "Window > Open Window Group", or configure one to start automatically in "Preferences > Startup".

share|improve this answer

another options is using screen and put the right options in your .screenrc. it has everything you need: tabs, starting command, naming tabs ..... when you start screen, it reads your .screenrc file and then starts all commands you have configured in, like opening different tabs, starting few applications and many more ... the reason why i use screen is i can use it on almost every *nix whithout changing a single line of my .screenrc. don't hesitate to message me if you want a .screenrc file example. (new user here so i can'g post hyperlinks right now :( )

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.