chiark / gitweb /
dot/emacs, el/dot-emacs.el: Fix patterns for root prompt.
[profile] / dot / emacs
index 2a7796a6b09479800ec4f0bf40fc353b4a5fbe72..c291fdd365eeeb1f4e0a51d3cc675fed05b80204 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 
 ;; 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\\):"))