aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/elisp/eshell-prompt.el
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/emacs/elisp/eshell-prompt.el')
-rw-r--r--Emacs/.config/emacs/elisp/eshell-prompt.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/elisp/eshell-prompt.el b/Emacs/.config/emacs/elisp/eshell-prompt.el
index 3559bed..1571cbd 100644
--- a/Emacs/.config/emacs/elisp/eshell-prompt.el
+++ b/Emacs/.config/emacs/elisp/eshell-prompt.el
@@ -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)