From 41bac99a5fd10d0a9b6c6d4fd72284fdfad91613 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 17 Jun 2018 02:34:06 +0200 Subject: [PATCH] eshell: color prompt red if last command failed --- modules/emacs/eshell/autoload/eshell.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/emacs/eshell/autoload/eshell.el b/modules/emacs/eshell/autoload/eshell.el index 13737f1ff..0cf4c1ea3 100644 --- a/modules/emacs/eshell/autoload/eshell.el +++ b/modules/emacs/eshell/autoload/eshell.el @@ -63,7 +63,8 @@ 'face '+eshell-prompt-pwd) (propertize (+eshell--current-git-branch) 'face '+eshell-prompt-git-branch) - " λ ")) + (propertize " λ" 'face (if (zerop eshell-last-command-status) 'success 'error)) + " ")) ;;