chiark / gitweb /
dot/emacs, el/dot-emacs.el: Fix patterns for root prompt.
[profile] / el / dot-emacs.el
index 4969f2933afc0a766ad025a2b4471605a0c76fde..e6b00c0941a0d5dac44487923bf63ad25a496e9e 100644 (file)
@@ -2081,7 +2081,7 @@ (defun mdw-eshell-prompt ()
            (eshell/pwd)
            right)))
 (setq eshell-prompt-function 'mdw-eshell-prompt)
-(setq eshell-prompt-regexp "^\\[[^]]+\\]")
+(setq eshell-prompt-regexp "^\\[[^]>]+\\(\\]\\|>>?\\)")
 
 (defalias 'eshell/e 'find-file)
 (defalias 'eshell/w3m 'w3m-goto-url)