chiark / gitweb /
dot/emacs: Improve shell-mode detection of password prompts.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 3 Jun 2010 18:32:51 +0000 (19:32 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 3 Jun 2010 18:33:48 +0000 (19:33 +0100)
It's missing catacomb pixie prompts.

dot/emacs

index 29974a64b9f2df8137143547518d794bf8b11140..2a5522d96e718fefd963cff39e3aa612de2a5ef3 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (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\\):")
+             "[Pp]assword\\|[Pp]ass ?phrase\\(\\| [-a-zA-Z0-9._]+\\)\\):")
       comint-file-name-chars "~/A-Za-z0-9+@:_.$#%,={}-"
       shell-file-name-chars comint-file-name-chars)