From ef94007b1a123af31f19907fe6366632705daafb Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 17 Jun 2018 09:45:00 +0200 Subject: emacs: Fix eshell prompt matching --- emacs/.emacs.d/main.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 5f9e33cb..cd427146 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -2277,7 +2277,8 @@ With two prefix arguments, write out the day and month name." eshell-prompt-function (lambda () (concat (eshell/pwd) - "\n$ "))) + "\n$ ")) + eshell-prompt-regex (rx bol (char "$") blank)) (define-hook-helper eshell-load () (bind-key "C-c C-l" #'counsel-esh-history eshell-mode-map)))) -- cgit 1.4.1