If it's a root prompt on a deficient terminal, it'll have two `>' at the
end. Of course, if it's on a stale terminal for a non-root session,
it'll only have one, so be careful.
;; Make the shell mode aware of my prompt.
;; Make the shell mode aware of my prompt.
-(setq shell-prompt-pattern "^[^]#$%>»}\n]*[]#$%>»}] *")
+(setq shell-prompt-pattern "^[^]#$%>»}\n]*\\([]#$%»}]\\|>>?\\) *")
(setq comint-password-prompt-regexp
(concat "\\(\\([Ee]nter \\|[Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
"[Pp]assword\\|pass phrase\\):"))
(setq comint-password-prompt-regexp
(concat "\\(\\([Ee]nter \\|[Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
"[Pp]assword\\|pass phrase\\):"))
(eshell/pwd)
right)))
(setq eshell-prompt-function '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)
(defalias 'eshell/e 'find-file)
(defalias 'eshell/w3m 'w3m-goto-url)