Add exit status code on failure to eshell prompt

This commit is contained in:
2025-11-04 16:43:02 +00:00
parent d46304378c
commit 088ce4a865

View File

@@ -52,7 +52,10 @@
"]"
"\n"
("└─>" :foreground ,ep/pipe-colour)
(,ep/user-prompt :foreground ,(ep/--colour-on-last-command))
(,(if (= eshell-last-command-status 0)
ep/user-prompt
(format " [%d]%s" eshell-last-command-status ep/user-prompt))
:foreground ,(ep/--colour-on-last-command))
(" " default))
(mapconcat
#'(lambda (item)