all repos — archive/dotfiles @ a1385303f99a383252e18d9affa0d40f12aa2bd7

Superseded by nixfiles

Emacs: Fix tramp prompt hanging on certain prompts
Alan Pearce alan@alanpearce.co.uk
Sat, 09 Jan 2016 17:45:42 +0100
commit

a1385303f99a383252e18d9affa0d40f12aa2bd7

parent

069922e569c9f3729b2a6f48d414608e98e3344b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -681,7 +681,7 @@ (and (normal-backup-enable-predicate name)                                                    (not (let ((method (file-remote-p name 'method)))
                                                           (when (stringp method)
                                                             (member method '("su" "sudo")))))))
-                    tramp-shell-prompt-pattern "\\(?:^\\|
\\)[^#$%>\n]*#?[#$%>›] *\\(\\[[0-9;]*[a-zA-Z] *\\)*")
+                    tramp-shell-prompt-pattern "\\(?:^\\|
\\)[^]#$%>\n]*#?[]#$%>❯›] *\\(\\[[0-9;]*[a-zA-Z] *\\)*")
               (add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" (concat "/" tramp-default-method ":%h:")))
               (add-to-list 'tramp-default-proxies-alist `(,(regexp-quote (system-name)) nil nil))
               (add-to-list 'tramp-default-proxies-alist '("localhost" nil nil))