Add exit status code on failure to eshell prompt
This commit is contained in:
@@ -52,7 +52,10 @@
|
|||||||
"]"
|
"]"
|
||||||
"\n"
|
"\n"
|
||||||
("└─>" :foreground ,ep/pipe-colour)
|
("└─>" :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))
|
(" " default))
|
||||||
(mapconcat
|
(mapconcat
|
||||||
#'(lambda (item)
|
#'(lambda (item)
|
||||||
|
|||||||
Reference in New Issue
Block a user