Variable: eshell-prompt-function
eshell-prompt-function is a customizable variable defined in
em-prompt.el.gz.
Value
#[0 "\300\301 !\302 \303U\203\304\202\305P\207"
[abbreviate-file-name eshell/pwd user-uid 0 " # " " $ "]
3]
Documentation
A function that returns the Eshell prompt string.
Make sure to update eshell-prompt-regexp so that it will match your
prompt.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-prompt.el.gz
(defcustom eshell-prompt-function
(lambda ()
(concat (abbreviate-file-name (eshell/pwd))
(if (= (user-uid) 0) " # " " $ ")))
"A function that returns the Eshell prompt string.
Make sure to update `eshell-prompt-regexp' so that it will match your
prompt."
:type 'function
:group 'eshell-prompt)