Function: eshell-add-command-to-history

eshell-add-command-to-history is a byte-compiled function defined in em-hist.el.gz.

Signature

(eshell-add-command-to-history)

Documentation

Add the command entered at eshell-commands prompt to the history ring.

The command is added to the input history ring, if the value of variable eshell-input-filter returns non-nil when called on the command.

This function is supposed to be called from the minibuffer, presumably as a minibuffer-exit-hook.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-hist.el.gz
(defun eshell-add-command-to-history ()
  "Add the command entered at `eshell-command's prompt to the history ring.
The command is added to the input history ring, if the value of
variable `eshell-input-filter' returns non-nil when called on the
command.

This function is supposed to be called from the minibuffer, presumably
as a `minibuffer-exit-hook'."
  (eshell-add-input-to-history
   (buffer-substring (minibuffer-prompt-end) (point-max))))