From 2f3844856bd1a887b5da2aa74f641b82268a2ba8 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 5 Oct 2019 17:57:32 +0200 Subject: [PATCH] [eshell] Fix prompt coloring --- site-lisp/db-eshell.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/site-lisp/db-eshell.el b/site-lisp/db-eshell.el index 9ba8317..83b47e0 100644 --- a/site-lisp/db-eshell.el +++ b/site-lisp/db-eshell.el @@ -26,15 +26,17 @@ " (let ((head-face '(:foreground "#859900"))) - (format (concat (propertize "┌─" 'face head-face) - "%s@%s %s\n" - (propertize "└─" 'face head-face) - (if (zerop (user-uid)) "#" "$") - (propertize " " 'face '(:weight bold))) + (concat (propertize "┌─" 'face head-face) (user-login-name) + "@" (system-name) + " " (propertize (abbreviate-file-name (eshell/pwd)) - 'face '(:foreground "#dc322f"))))) + 'face '(:foreground "#dc322f")) + "\n" + (propertize "└─" 'face head-face) + (if (zerop (user-uid)) "#" "$") + (propertize " " 'face '(:weight bold))))) (defun eshell/gst (&rest args) (magit-status (pop args) nil)