From 9b8d89b83c757f4fb34d586c594e9b6fbf62eadf Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 1 Sep 2020 23:29:45 +0100 Subject: +eshell prompt function to make it look nicer --- Emacs/.config/emacs/config.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Emacs/.config/emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 25d892f..eb82fb5 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -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 -- cgit v1.2.3-13-gbd6f