From 3e0065d9d1771726d30365cbe3b189e716455bea Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 26 Feb 2022 15:38:02 +0100 Subject: [PATCH] =?UTF-8?q?[Emacs]=20Customize=20a=20bit=20Eshell=E2=80=99?= =?UTF-8?q?s=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- org/config/emacs.org | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org/config/emacs.org b/org/config/emacs.org index f52fe0e..0fb91c4 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -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]* [#λ] ") <> <> <>