diff options
| author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-10-29 23:18:50 +0000 | 
|---|---|---|
| committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-10-29 23:45:25 +0000 | 
| commit | f53171210158ac5cedfe88db314bb0fd723642a5 (patch) | |
| tree | c46ee625a90d383d0a77faedbe12f33c873deea5 /Emacs/.config | |
| parent | eccbbacbd45850860aa6fabd1eb089000ccbff1f (diff) | |
| download | dotfiles-f53171210158ac5cedfe88db314bb0fd723642a5.tar.gz dotfiles-f53171210158ac5cedfe88db314bb0fd723642a5.tar.bz2 dotfiles-f53171210158ac5cedfe88db314bb0fd723642a5.zip | |
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.
Diffstat (limited to 'Emacs/.config')
| -rw-r--r-- | Emacs/.config/emacs/elisp/eshell-prompt.el | 5 | 
1 files changed, 3 insertions, 2 deletions
| 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 | 
