Fix bug eshell-prompt

When on a remote directory (i.e. ssh'd onto a separate folder), user
input would be coloured based on the status colour of the last
command.  This colouring should only apply on the actual user-prompt
component - so this commit fixes it.

RCA: caused by run-on-colouring from the ep/user-prompt i.e. no
defaulting of the face.
This commit is contained in:
2025-10-29 23:18:50 +00:00
parent eccbbacbd4
commit f531712101

View File

@@ -24,7 +24,7 @@
;;; Code:
(defvar ep/user-prompt " λ "
(defvar ep/user-prompt " λ>"
"Prompt for user to input.")
(defvar ep/pwd-max-len 30)
@@ -52,7 +52,8 @@
"]"
"\n"
("└─>" :foreground ,ep/pipe-colour)
(,ep/user-prompt :foreground ,(ep/--colour-on-last-command)))
(,ep/user-prompt :foreground ,(ep/--colour-on-last-command))
(" " default))
(mapconcat
#'(lambda (item)
(thread-last