Sindhu S
sindhus@live.in 2013
Ekaterina Gerasimova
kittykat3756@gmail.com 2013-2014
Michael Hill
mdhillca@gmail.com 2013

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License and a GNU General Public License version 3. It may be redistributed and/or modified under either license.

GPL 3 statement:

This work is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Set the behavior of Terminal when a custom command or the default shell exits.
Fran Dieguez
frandieguez@gnome.org 2013.
Leandro Regueiro
leandro.regueiro@gmail.com 2011.

# Set behavior on command exit

You can set the terminal to exit, restart or remain open when the shell or a custom command exits:

Press the menu button in the top-right corner of the window and select Preferences.

In the sidebar, select your current profile in the Profiles section.

Select Command.

From the When command exits drop down list, select one of the following options:

Exit the terminal

Restart the command

Hold the terminal open

The setting will be saved automatically when you select it.

If you have set a custom command that is non-interactive, have set the exit behavior to Exit the terminal, and have set the profile to be the default profile, Terminal may exit before you can see the output of the command.