Variable: eshell-ask-to-save-last-dir

eshell-ask-to-save-last-dir is a customizable variable defined in em-dirs.el.gz.

Value

always

Documentation

Determine if the last-dir-ring should be automatically saved.

The last-dir-ring is always preserved when exiting an Eshell buffer. However, when Emacs is being shut down, this variable determines whether to prompt the user, or just save the ring. If set to nil, it means never ask whether to save the last-dir-ring. If set to t, always ask if any Eshell buffers are open at exit time. If set to always, the list-dir-ring will always be saved, silently.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-dirs.el.gz
(defcustom eshell-ask-to-save-last-dir 'always
  "Determine if the last-dir-ring should be automatically saved.
The last-dir-ring is always preserved when exiting an Eshell buffer.
However, when Emacs is being shut down, this variable determines
whether to prompt the user, or just save the ring.
If set to nil, it means never ask whether to save the last-dir-ring.
If set to t, always ask if any Eshell buffers are open at exit time.
If set to `always', the list-dir-ring will always be saved, silently."
  :type '(choice (const :tag "Never" nil)
		 (const :tag "Ask" t)
		 (const :tag "Always save" always)))