Variable: shell-kill-buffer-on-exit
shell-kill-buffer-on-exit is a customizable variable defined in
shell.el.gz.
Value
nil
Documentation
Kill a shell buffer after the shell process terminates.
This variable was added, or its default value changed, in Emacs 29.1.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/shell.el.gz
(defcustom shell-kill-buffer-on-exit nil
"Kill a shell buffer after the shell process terminates."
:type 'boolean
:group 'shell
:version "29.1")