Variable: eshell-prompt-regexp
eshell-prompt-regexp is a customizable variable defined in
em-prompt.el.gz.
Value
"^[^#$\n]* [#$] "
Documentation
A regexp which fully matches your eshell prompt.
This setting is important, since it affects how eshell will interpret the lines that are passed to it. If this variable is changed, all Eshell buffers must be exited and re-entered for it to take effect.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-prompt.el.gz
(defcustom eshell-prompt-regexp "^[^#$\n]* [#$] "
"A regexp which fully matches your eshell prompt.
This setting is important, since it affects how eshell will interpret
the lines that are passed to it.
If this variable is changed, all Eshell buffers must be exited and
re-entered for it to take effect."
:type 'regexp
:group 'eshell-prompt)