[EShell] More prompt beautifications

Or modifications, at least.
This commit is contained in:
Daniel - 2018-07-20 14:26:34 +02:00
parent 462dd74550
commit c67255b7c5
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 3 additions and 2 deletions

View File

@ -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