You can also customize warnings and prompts when closing windows, either always, never, or only for specific processes. Then, change the shell exiting behavior to "Close the window" or preferably to "Close if the shell exited cleanly." Set the Terminal to close if a shell exits cleanly. To do this, go to the Terminal's preferences, then to the Settings section, and select the "Shell" tab. However, if you change this behavior you can run commands and scripts in ways that will close the window when done. By default, the Terminal will keep the window open and display the text "," leaving you with a nonfunctional window that you have to close manually. One way you can better manage these windows is to change the default Terminal behavior for when a terminal shell exits. While an unused Terminal window can quickly be closed by pressing Command-W or clicking the red button at the top of the window, if you run numerous scripts then you may be left with a number of windows to close. If you regularly script tasks in the Terminal, you might find at times that handling windows can be a burden.
0 Comments
Leave a Reply. |