|
|
Creating and using .term files to set individual Terminal window prefs. We know that the Terminal application in MacOS X has a lot of preferences. You can change the window size and shape, opacity, location, title, default shell, font size and type and color, and more. But did you know that by using .term files individual windows can have their own predefined preferences? In fact you can have a library of window settings, each one specific to particular uses of the Terminal. For example, I have most of my windows fairly transparent with small white text, but this is not very useful when viewing man pages. So I made a .term file just for man pages that has a completely opaque white window with larger black text, and placed in the center of my screen. I also have .term files for the curl and wget apps, netris, and hx servers I frequent. I'm sure you can think of a several good uses for .term files in your work. The basic parameters can be found in the file Home/Library/Preferences/com.apple.Terminal.plist Look over these parameters and see which you can recognize and which you can't. The most obvious candidates for customization are:
Don't change the values in this file yourself, because if you make a mistake the Terminal won't open! Now to start off making your own .term files, go to: Home/Library/Application Support/Terminal If that directory does not exist, create it yourself and copy over a template to get you started. Use the terminal commands shown below.
The last comand lists the folder where you should see one file. To edit the file, I used TextEdit, but you can use the application of your choice, as long as the files are saved as Plain Text. Edit the <key> parameters as you wish, being careful NOT to change the <key> items names at all, just changing the values between the <key> items. Save your modifications to the Home/Library/Application Support/Terminal directory, making sure that it has the extension .term and is a Plain Text file. Here are some <key> items you can add that might not be in the default com.apple.Terminal.plist file. Make sure you add them in Alphabetical order! If you don't, or if you make a mistake, Terminal won't start up.
Finishing UpWhen you're happy with the .term file's settings, make sure it's in the right place: Home/Library/Application Support/Terminal If it is, and you did your editing correctly, your .term file should be selectable under the Shell/Library menu item in the Terminal app. Congratulations! You now can build a library of Application-Specific Terminal Settings! Remember, you must quit and restart the Terminal application to test your .term files. Many thanks go to T.H.E.M. for the information I used in this How-To.
|
||||
|
||||||||||||||||||||||||||||||||
Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement.
[an error occurred while processing this directive]