eshell: color prompt red if last command failed

This commit is contained in:
Henrik Lissner 2018-06-17 02:34:06 +02:00
parent f3aadf6c77
commit 41bac99a5f
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -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))
" "))
;;