Sindhu S
sindhus@live.in 2013
Ekaterina Gerasimova
kittykat3756@gmail.com 2013-2014
Michael Hill
mdhillca@gmail.com 2013
Set the behavior of Terminal when a custom command or the default shell exits.
Daniel Șerbănescu
daniel [at] serbanescu [dot] dk 2018

# Set behavior on command exit

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

Open Edit Preferences.

Your current profile is selected in the sidebar. If you wish to edit a different profile, click on its name.

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.