From c67255b7c528bc242b186c6fdb396c3df25ce969 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 20 Jul 2018 14:26:34 +0200 Subject: [PATCH] [EShell] More prompt beautifications Or modifications, at least. --- site-lisp/db-eshell.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site-lisp/db-eshell.el b/site-lisp/db-eshell.el index 2b4e11b..46d64cd 100644 --- a/site-lisp/db-eshell.el +++ b/site-lisp/db-eshell.el @@ -47,8 +47,9 @@ " (let ((head-face '(:foreground "#859900"))) (format (concat (propertize "┌─" 'face head-face) - "[%s@%s] [%s]\n" + "%s@%s %s\n" (propertize "└─" 'face head-face) + (if (zerop (user-uid)) "#" "$") (propertize " " 'face '(:weight bold))) (user-login-name) (system-name) @@ -56,7 +57,7 @@ 'face '(:foreground "#dc322f"))))) (setq eshell-prompt-function #'eshell/default-prompt-function - eshell-prompt-regexp "└─ " + eshell-prompt-regexp "└─[$#] " eshell-highlight-prompt nil) (add-hook 'eshell-mode-hook