+eshell prompt function to make it look nicer

This commit is contained in:
2020-09-01 23:29:45 +01:00
parent bd7a94bb5f
commit 9b8d89b83c

View File

@@ -1118,7 +1118,7 @@ it's separation (or perhaps better phrased, *integration*) of two
you can mix and match at will for use in the shell, which grants
greater power than many shells I know of.
*** Configuration
*** Core
Setup a function that /toggles/ the eshell window rather than
just opening it via =+dx/toggle-buffer=.
@@ -1130,7 +1130,13 @@ just opening it via =+dx/toggle-buffer=.
"tt" #'+shell/toggle-eshell)
:init
(setq eshell-cmpl-ignore-case t
eshell-cd-on-directory t)
eshell-cd-on-directory t
eshell-prompt-function
(proc
(concat
(format "[%s]\n" (abbreviate-file-name (eshell/pwd)))
"λ "))
eshell-prompt-regexp "")
(with-eval-after-load "prog-mode"
(+pretty/set-alist
eshell-mode-hook