all repos — nixfiles @ f8d667341977a445fd701a07112b97896b0ce1f9

System and user configuration, managed by nix and home-manager

Emacs: Configure multi-line eshell prompt

Alan Pearce
commit

f8d667341977a445fd701a07112b97896b0ce1f9

parent

c71291af427449c0a1b00c5b824136163ab70195

1 file changed, 5 insertions(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -2185,7 +2185,11 @@ #+BEGIN_SRC emacs-lisp
(use-package eshell :bind ("C-c s" . eshell) :config (progn - (setq eshell-directory-name "~/.emacs.d/eshell") + (setq eshell-directory-name "~/.emacs.d/eshell" + eshell-prompt-function (lambda () + (concat + (eshell/pwd) + "\n$ "))) (add-hook 'eshell-load-hook (lambda () (bind-key "C-c C-l" #'counsel-esh-history eshell-mode-map)))))