Function: eshell-copy-old-input

eshell-copy-old-input is an interactive and byte-compiled function defined in esh-mode.el.gz.

Signature

(eshell-copy-old-input)

Documentation

Insert after prompt old input at point as new input to be edited.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-mode.el.gz
(defun eshell-copy-old-input ()
  "Insert after prompt old input at point as new input to be edited."
  (interactive)
  (let ((input (eshell-get-old-input)))
    (goto-char eshell-last-output-end)
    (insert-and-inherit input)))