 |
 |
Exiting Terminal
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Apr 2002
Location: Chicago
Status:
Offline
|
|
The way I have it setup now is when I type exit in the terminal, it closes the active window but the application is still open. Is there any way to change the preferences so when I type exit it exits the entire app like it would do in UNIX or Linux? I looked at the settings and there was nothing there so I am wondering if any of you guys was able to do this?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
You could try adding "killall Terminal" to your .logout...
|
|
[vash:~] banana% killall killall
Terminated
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Apr 2002
Location: Chicago
Status:
Offline
|
|
All right but where is .logout located. The only file I was able to find was /private/etc/csh.logout
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 2002
Location: San Francisco Bay Area
Status:
Offline
|
|
Originally posted by MrNo:
All right but where is .logout located. The only file I was able to find was /private/etc/csh.logout
You should create a .logout file and stick it in your home directory.
Use something simple like pico to do it.
|
To choose doubt as a philosophy of life is akin to choosing immobility as a means of transportation.
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Apr 2002
Location: Chicago
Status:
Offline
|
|
sweet, that worked perfectly
tnx guys
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status:
Offline
|
|
I think this command may be more graceful than killall, as it achieves the exact same effect as choosing "Quit Terminal" from the Terminal application menu:
osascript -e 'tell application "Terminal.app" to quit'
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status:
Offline
|
|
Oh, and you may want to run a check to make sure it's Apple's terminal that's running (and not iTerm, an X11 terminal, or a remote SSH login):
Code:
if ("$TERM_PROGRAM" == "Apple_Terminal") then
osascript -e 'tell application "Terminal.app" to quit'
endif
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |