diff options
author | Alan Pearce | 2018-06-17 09:45:00 +0200 |
---|---|---|
committer | Alan Pearce | 2018-06-17 09:45:46 +0200 |
commit | ef94007b1a123af31f19907fe6366632705daafb (patch) | |
tree | 6532c1d77990e78b00428753d90123cf015d3c78 | |
parent | 304ae84662c4064caba54ea4dca2ced2556c8d4b (diff) | |
download | dotfiles-ef94007b1a123af31f19907fe6366632705daafb.tar.lz dotfiles-ef94007b1a123af31f19907fe6366632705daafb.tar.zst dotfiles-ef94007b1a123af31f19907fe6366632705daafb.zip |
emacs: Fix eshell prompt matching
-rw-r--r-- | emacs/.emacs.d/main.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 5f9e33c..cd42714 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)))) |