Sponsored Content
Operating Systems OS X (Apple) Terminal.app keeps creating copies of my settings files Post 302370795 by siemsen on Thursday 12th of November 2009 11:55:58 AM
Old 11-12-2009
Terminal.app keeps creating copies of my settings files

Under Leopard, I like to conveniently open Terminal windows onto remote systems. I've created several settings files in Terminal, one for each remote system that I want to access. To open window, I right-click on the Terminal icon in the Dock, expand the "New Window" menu item, and select the remote system I want to connect to. This has worked very well for me for years.

Today I tried to improve the process. I created a shell script for each remote system. Each script contains a single line like

open /Library/Application Support/Terminal/system-abc.terminal

I created the system-abc.terminal files by doing Terminal->Shell->Export Settings... When I execute the shell script, a new Terminal window pops up as expected. This is great - now I can execute the shell script from Quicksilver, so I have a way to open Terminals with a few keystrokes.

This works quite well, but it has an unfortunate side effect. Whenever I execute the shell script, a new menu item gets added to Terminal's list of remote systems. In other words, after executing the above script once and then right-click on the Terminal icon in the dock, and expand "New Window", I find a brand-new thing in the list. The new thing is called "system-abc 1". If I run the script again, I find another new thing named "system-abc 2". Etc.

So it works, but it clutters up the list of remote systems. Is this a bug in Terminal?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Terminal settings on solaris

I am getting the following error when try to use vi vt100: Unknown terminal type Visual needs addressable cursor or upline capability : I have checked the TERM variable which is set to vt100. What could be the problem. This is on solaris 2.8 and i am doing telnet. (2 Replies)
Discussion started by: sssow
2 Replies

2. UNIX for Dummies Questions & Answers

Terminal Video Settings

I am not a Solaris (Unix) guy so i need help. I am trying to get a Sun Ultra 5 running Solaris 8 to display the correct video for my KVM switch. I have set the CDE to 1024x768x75 and have no problem with video using this setting in CDE. When I shut down the server or boot up the server it is... (4 Replies)
Discussion started by: cchyzm
4 Replies

3. Solaris

Terminal settings from linux to solaris

When I log in from my linux workstation (CentOS4) to a solaris 8 server using SSH or telnet, the terminal settings don't seem to work well. When I tail or vi a file, I get a blank screen or no response, and I am no longer able to interact with the session. I have to type the escape sequence to... (2 Replies)
Discussion started by: tjlst15
2 Replies

4. UNIX for Dummies Questions & Answers

KSH Terminal Settings

I've been doing a lot of searching through the forums to figure out how to: 1 - get my Backspace key to work in my ksh telnet session 2 - get the PWD to show up as the prompt Solution to 1 - stty erase ^H Solution to 2 - export PS1="$PWD>" Or so I thought...type those commands on the... (6 Replies)
Discussion started by: dstinsman
6 Replies

5. Windows & DOS: Issues & Discussions

Display running 'app' in terminal titlebar?

Hi. I was, not too long ago, an OS X home user. One of the things I remember from using the Apple-installed Terminal is: whenever an executable that took more than a split second to do its thing was running, its name would appear in the title bar in a way similar to "Terminal: ssh" or "Terminal:... (0 Replies)
Discussion started by: SilversleevesX
0 Replies

6. Shell Programming and Scripting

What settings are required for login to CVS using Terminal in Mac OS X?

Hi All, I want to login to CVS using terminal. I am executing the following command in the terminal :- export CVSROOT=: pserver:ags_rd@istcvs.corp.apple.com:/istcvs/CVSHOME cvs login But i get the following error : Afreens-iMac:buildTest Afreen$ export CVSROOT=:... (3 Replies)
Discussion started by: Afreen
3 Replies

7. OS X (Apple)

What settings are required for login to CVS using Terminal in Mac OS X?

Hi All, I want to login to CVS using terminal. I am executing the following command in the terminal :- export CVSROOT=: pserver:ags_rd@istcvs.corp.apple.com:/istcvs/CVSHOME cvs login But i get the following error : Afreens-iMac:buildTest Afreen$ export CVSROOT=:... (1 Reply)
Discussion started by: Afreen
1 Replies

8. UNIX for Dummies Questions & Answers

Terminal emulation settings help rlogin AIX to SCO

I use a program called TinyTerm to access our AIX machine. It works fine except for when I rlogin into our SCO unix server. Backspace doesn't delete, ctrl-c doesn't work (delete key does same thing), and the most annoying thing is vi acts very wierd. I have to press the down arrow like 3 times to... (11 Replies)
Discussion started by: herot
11 Replies

9. Shell Programming and Scripting

Tar creating copies of files

I am trying to archive directories based on their last modified date. When I tar and compress the directory it makes copies of whats inside, I don't know how to fix this. Here is my code. #!/bin/bash #AUTODRUNDISABLE VERSION="0.2" cd /desired/directory/to/archive find . -type d -newermt... (3 Replies)
Discussion started by: jrymer
3 Replies

10. BSD

How to play a song in terminal app in os x?

Just wondering -- is there a way to play a song in iTunes from the terminal app? (1 Reply)
Discussion started by: Straitsfan
1 Replies
TERMINAL(1)							       Xfce							       TERMINAL(1)

NAME
Terminal - A Terminal emulator for X SYNOPSIS
Terminal [OPTION...] DESCRIPTION
Terminal is what is known as an X terminal emulator, often referred to as terminal or shell. It provides an equivalent to the old-fashioned text screen on your desktop, but one which can easily share the screen with other graphical applications. Windows users may already be familiar with the MS-DOS Prompt utility, which has the analogous function of offering a DOS command-line under Windows, though one should note that the UNIX CLI offer far more power and ease of use than does DOS. Terminal emulates the xterm application developed by the X Consortium. In turn, the xterm application emulates the DEC VT102 terminal and also supports the DEC VT220 escape sequences. An escape sequence is a series of characters that start with the Esc character. Terminal accepts all of the escape sequences that the VT102 and VT220 terminals use for functions such as to position the cursor and to clear the screen. OPTIONS
Option Summary Here is a summary of all the options, grouped by type. Explanations are in the following sections. General Options -h, --help; -V, --version; --disable-server; --default-display=display; --default-working-directory=directory Window or Tab Separators --tab; --window Tab Options -x, --execute; -e, --command=command; --working-directory=directory; -T, --title=title; -H, --hold Window Options --display=display; --geometry=geometry; --role=role; --startup-id=string; -I, --icon=icon; --fullscreen; --maximize; --show-menubar, --hide-menubar; --show-borders, --hide-borders; --show-toolbars, --hide-toolbars General Options -h, --help List the various command line options supported by Terminal and exit -V, --version Display version information and exit --disable-server Do not register with the D-BUS session message bus --default-display=display Default X display to use. --default-working-directory=directory Set directory as the default working directory for the terminal Window or Tab Separators --tab Open a new tab in the last-specified window; more than one of these options can be provided. --window Open a new window containing one tab; more than one of these options can be provided. Tab Options -x, --execute Execute the remainder of the command line inside the terminal -e, --command=command Execute command inside the terminal --working-directory=directory Set directory as the working directory for the terminal -T, --title=title Set title as the initial window title for the terminal -H, --hold Causes the terminal to be kept around after the child command has terminated Window Options --display=display X display to use for the last- specified window. --geometry=geometry Sets the geometry of the last-specified window to geometry. Read X(7) for more information on how to specify window geometries. --role=role Sets the window role of the last-specified window to role. Applies to only one window and can be specified once for each window you create from the command line. It is mostly used for session management inside Terminal --startup-id=string Specifies the startup notification id for the last-specified window. Used internally to forward the startup notification id when using the D-BUS service. -I, --icon=icon Set the terminal's icon as an icon name or filename. --fullscreen Set the last-specified window into fullscreen mode; applies to only one window; can be specified once for each window you create from the command line. --maximize Set the last-specified window into maximized mode; applies to only one window; can be specified once for each window you create from the command line. --show-menubar Turn on the menubar for the last-specified window. Can be specified once for each window you create from the command line. --hide-menubar Turn off the menubar for the last-specified window. Can be specified once for each window you create from the command line. --show-borders Turn on the window decorations for the last-specified window. Applies to only one window. Can be specified once for each window you create from the command line. --hide-borders Turn off the window decorations for the last-specified window. Applies to only one window. Can be specified once for each window you create from the command line. --show-toolbars Turn on the toolbars for the last-specified window. Applies to only one window. Can be specified once for each window you create from the command line. --hide-toolbars Turn off the toolbars for the last-specified window. Applies to only one window. Can be specified once for each window you create from the command line. EXAMPLES
Terminal --geometry 80x40 --command mutt --tab --command mc Opens a new terminal window with a geometry of 80 columns and 40 rows and two tabs in it, where the first tab runs mutt and the second tab runs mc. ENVIRONMENT
Terminal uses the Basedir Specification as defined on Freedesktop.org[1] to locate its data and configuration files. This means that file locations will be specified as a path relative to the directories described in the specification. ${XDG_CONFIG_HOME} The first base directory to look for configuration files. By default this is set to ~/.config/. ${XDG_CONFIG_DIRS} A colon separated list of base directories that contain configuration data. By default the application will look in ${sysconfdir}/xdg/. The value of ${sysconfdir} depends on how the program was build and will often be /etc/ for binary packages. ${XDG_DATA_HOME} The root for all user-specific data files. By default this is set to ~/.local/share/. ${XDG_DATA_DIRS} A set of preference ordered base directories relative to which data files should be searched in addition to the ${XDG_DATA_HOME} base directory. The directories should be separated with a colon. FILES
${XDG_CONFIG_DIRS}/Terminal/terminalrc This is the location of the configuration file that includes the preferences which control the look and feel of Terminal. ${XDG_DATA_DIRS}/Terminal/Terminal-toolbars.ui This file includes the user interface definition for the toolbars. If you customize the toolbars using the graphical toolbars editor, Terminal will store the new toolbars layout in the file ${XDG_DATA_HOME}/Terminal/Terminal-toolbars.ui. SEE ALSO
bash(1), X(7) AUTHORS
Nick Schermer <nick@xfce.org> Developer Benedikt Meurer <benny@xfce.org> Software developer, os-cillation, System development, Developer NOTES
1. Freedesktop.org http://freedesktop.org/ Terminal 0.4.4 02/01/2010 TERMINAL(1)
All times are GMT -4. The time now is 04:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy