From f53171210158ac5cedfe88db314bb0fd723642a5 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 29 Oct 2025 23:18:50 +0000 Subject: 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. --- Emacs/.config/emacs/elisp/eshell-prompt.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/elisp/eshell-prompt.el b/Emacs/.config/emacs/elisp/eshell-prompt.el index b6d0bd0..3559bed 100644 --- a/Emacs/.config/emacs/elisp/eshell-prompt.el +++ b/Emacs/.config/emacs/elisp/eshell-prompt.el @@ -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 -- cgit v1.2.3-13-gbd6f