* lisp/eshell/em-prompt.el (eshell-prompt-repeat-map): New keymap.
(Bug#59144)
"C-c C-n" #'eshell-next-prompt
"C-c C-p" #'eshell-previous-prompt)
+(defvar-keymap eshell-prompt-repeat-map
+ :doc "Keymap to repeat eshell-prompt key sequences. Used in `repeat-mode'."
+ "C-n" #'eshell-next-prompt
+ "C-p" #'eshell-previous-prompt)
+
+(put #'eshell-next-prompt 'repeat-map 'eshell-prompt-repeat-map)
+(put #'eshell-previous-prompt 'repeat-map 'eshell-prompt-repeat-map)
+
;;; Functions:
(define-minor-mode eshell-prompt-mode