Variable: eshell-prompt-function
eshell-prompt-function is a customizable variable defined in
em-prompt.el.gz.
Value
#[0
"\301\302 !\303 ?\205\304\305\"\306 \307U\203\310\202\311Q\207"
[eshell-last-command-status abbreviate-file-name eshell/pwd
eshell-exit-success-p format " [%d]"
file-user-uid 0 " # " " $ "]
4]
Documentation
A function that returns the Eshell prompt string.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-prompt.el.gz
(defcustom eshell-prompt-function
(lambda ()
(concat (abbreviate-file-name (eshell/pwd))
(unless (eshell-exit-success-p)
(format " [%d]" eshell-last-command-status))
(if (= (file-user-uid) 0) " # " " $ ")))
"A function that returns the Eshell prompt string."
:type 'function
:group 'eshell-prompt)