Function: eshell-command-mode-exit

eshell-command-mode-exit is an interactive and byte-compiled function defined in eshell.el.gz.

Signature

(eshell-command-mode-exit)

Documentation

Exit the eshell-command-mode(var)/eshell-command-mode(fun) minibuffer and save Eshell history.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/eshell.el.gz
(defun eshell-command-mode-exit ()
  "Exit the `eshell-command-mode' minibuffer and save Eshell history."
  (interactive)
  (when (eshell-using-module 'eshell-hist)
    (eshell-add-input-to-history
     (buffer-substring (minibuffer-prompt-end) (point-max)))
    (eshell--save-history))
  (exit-minibuffer))