[Emacs] Customize a bit Eshell’s prompt

This commit is contained in:
Lucien Cartier-Tilet 2022-02-26 15:38:02 +01:00
parent bcfded9a76
commit 3e0065d9d1
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -3085,6 +3085,11 @@ though.
"C-a" #'eshell-bol
"C-e" #'end-of-line)
:config
(setq eshell-prompt-function
(lambda ()
(concat (abbreviate-file-name (eshell/pwd))
(if (= (user-uid) 0) " # " " λ ")))
eshell-prompt-regexp "^[^#λ\n]* [#λ] ")
<<eshell-alias-file>>
<<eshell-concat-shell-command>>
<<eshell-alias-open>>